diff options
Diffstat (limited to 'spec/graphql/mutations/alert_management/update_alert_status_spec.rb')
-rw-r--r-- | spec/graphql/mutations/alert_management/update_alert_status_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/graphql/mutations/alert_management/update_alert_status_spec.rb b/spec/graphql/mutations/alert_management/update_alert_status_spec.rb index ab98088ebcd..08761ce64c2 100644 --- a/spec/graphql/mutations/alert_management/update_alert_status_spec.rb +++ b/spec/graphql/mutations/alert_management/update_alert_status_spec.rb @@ -37,8 +37,8 @@ RSpec.describe Mutations::AlertManagement::UpdateAlertStatus do context 'error occurs when updating' do it 'returns the alert with errors' do # Stub an error on the alert - allow_next_instance_of(Resolvers::AlertManagement::AlertResolver) do |resolver| - allow(resolver).to receive(:resolve).and_return(alert) + allow_next_instance_of(::AlertManagement::AlertsFinder) do |finder| + allow(finder).to receive(:execute).and_return([alert]) end allow(alert).to receive(:save).and_return(false) |