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 126362d024a..8b9abd9497d 100644 --- a/spec/graphql/mutations/alert_management/update_alert_status_spec.rb +++ b/spec/graphql/mutations/alert_management/update_alert_status_spec.rb @@ -4,7 +4,7 @@ require 'spec_helper' describe Mutations::AlertManagement::UpdateAlertStatus do let_it_be(:current_user) { create(:user) } - let_it_be(:alert) { create(:alert_management_alert, status: 'triggered') } + let_it_be(:alert) { create(:alert_management_alert, :triggered) } let_it_be(:project) { alert.project } let(:new_status) { Types::AlertManagement::StatusEnum.values['ACKNOWLEDGED'].value } let(:args) { { status: new_status, project_path: project.full_path, iid: alert.iid } } @@ -53,7 +53,7 @@ describe Mutations::AlertManagement::UpdateAlertStatus do it 'returns the alert with errors' do expect(resolve).to eq( alert: alert, - errors: ['Invalid status'] + errors: [_('Invalid status')] ) end end |