gitlab-org--gitlab-foss/spec/workers/propagate_integration_worker_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
621 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe PropagateIntegrationWorker do
describe '#perform' do
let(:project) { create(:project) }
let(:integration) do
Integrations::Pushover.create!(
project: project,
active: true,
device: 'MyDevice',
sound: 'mic',
priority: 4,
user_key: 'asdf',
api_key: '123456789'
)
end
it 'calls the propagate service with the integration' do
expect(Integrations::PropagateService).to receive(:propagate).with(integration)
subject.perform(integration.id)
end
end
end