Commit 503c08c9 authored by Sean Arnold's avatar Sean Arnold

Tweak expectation for service hooks

parent c0dc8d31
...@@ -8,11 +8,11 @@ RSpec.shared_examples 'creates an alert management alert' do ...@@ -8,11 +8,11 @@ RSpec.shared_examples 'creates an alert management alert' do
end end
it 'executes the alert service hooks' do 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 subject
expect(ProjectServiceWorker).to have_received(:perform_async).with(slack_service.id, an_instance_of(Hash))
end end
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