diff options
Diffstat (limited to 'spec/workers/incident_management/process_alert_worker_v2_spec.rb')
-rw-r--r-- | spec/workers/incident_management/process_alert_worker_v2_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/incident_management/process_alert_worker_v2_spec.rb b/spec/workers/incident_management/process_alert_worker_v2_spec.rb index 476b6f04942..b9d7cd9fee8 100644 --- a/spec/workers/incident_management/process_alert_worker_v2_spec.rb +++ b/spec/workers/incident_management/process_alert_worker_v2_spec.rb @@ -19,14 +19,14 @@ RSpec.describe IncidentManagement::ProcessAlertWorkerV2, feature_category: :inci allow(Gitlab::AppLogger).to receive(:warn).and_call_original allow(AlertManagement::CreateAlertIssueService) - .to receive(:new).with(alert, User.alert_bot) + .to receive(:new).with(alert, Users::Internal.alert_bot) .and_call_original end shared_examples 'creates issue successfully' do it 'creates an issue' do expect(AlertManagement::CreateAlertIssueService) - .to receive(:new).with(alert, User.alert_bot) + .to receive(:new).with(alert, Users::Internal.alert_bot) expect { perform_worker }.to change { Issue.count }.by(1) end |