Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/incident_management/timeline_events/update_service_spec.rb')
-rw-r--r--spec/services/incident_management/timeline_events/update_service_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/services/incident_management/timeline_events/update_service_spec.rb b/spec/services/incident_management/timeline_events/update_service_spec.rb
index 3da533fb2a6..728f2fa3e9d 100644
--- a/spec/services/incident_management/timeline_events/update_service_spec.rb
+++ b/spec/services/incident_management/timeline_events/update_service_spec.rb
@@ -146,7 +146,8 @@ RSpec.describe IncidentManagement::TimelineEvents::UpdateService do
create(:incident_management_timeline_event, :non_editable, project: project, incident: incident)
end
- it_behaves_like 'error response', 'You cannot edit this timeline event.'
+ it_behaves_like 'error response',
+ 'You have insufficient permissions to manage timeline events for this incident'
end
end
@@ -155,7 +156,8 @@ RSpec.describe IncidentManagement::TimelineEvents::UpdateService do
project.add_reporter(user)
end
- it_behaves_like 'error response', 'You have insufficient permissions to manage timeline events for this incident'
+ it_behaves_like 'error response',
+ 'You have insufficient permissions to manage timeline events for this incident'
end
end
end