Commit 26e81eeb authored by Peter Leitzen's avatar Peter Leitzen

Merge branch '228669-follow-up' into 'master'

Tweak expectation for service hooks

See merge request gitlab-org/gitlab!45845
parents 85bf09ff 503c08c9
......@@ -8,11 +8,11 @@ RSpec.shared_examples 'creates an alert management alert' do
end
it 'executes the alert service hooks' do
slack_service = create(:service, type: 'SlackService', project: project, alert_events: true, active: true)
expect_next_instance_of(AlertManagement::Alert) do |alert|
expect(alert).to receive(:execute_services)
end
subject
expect(ProjectServiceWorker).to have_received(:perform_async).with(slack_service.id, an_instance_of(Hash))
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment