diff options
Diffstat (limited to 'spec/services/incident_management/issuable_escalation_statuses/prepare_update_service_spec.rb')
-rw-r--r-- | spec/services/incident_management/issuable_escalation_statuses/prepare_update_service_spec.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/services/incident_management/issuable_escalation_statuses/prepare_update_service_spec.rb b/spec/services/incident_management/issuable_escalation_statuses/prepare_update_service_spec.rb index bfed5319028..b30b3a69ae6 100644 --- a/spec/services/incident_management/issuable_escalation_statuses/prepare_update_service_spec.rb +++ b/spec/services/incident_management/issuable_escalation_statuses/prepare_update_service_spec.rb @@ -37,7 +37,7 @@ RSpec.describe IncidentManagement::IssuableEscalationStatuses::PrepareUpdateServ end shared_examples 'invalid params error response' do - include_examples 'error response', 'Invalid value was provided for a parameter.' + include_examples 'error response', 'Invalid value was provided for parameters: status' end it_behaves_like 'successful response', { status_event: :acknowledge } @@ -105,4 +105,10 @@ RSpec.describe IncidentManagement::IssuableEscalationStatuses::PrepareUpdateServ it_behaves_like 'successful response', { status_event: :acknowledge } end end + + context 'with status_change_reason param' do + let(:params) { { status_change_reason: ' by changing the incident status' } } + + it_behaves_like 'successful response', { status_change_reason: ' by changing the incident status' } + end end |