diff options
Diffstat (limited to 'spec/graphql/mutations/incident_management/timeline_event/promote_from_note_spec.rb')
-rw-r--r-- | spec/graphql/mutations/incident_management/timeline_event/promote_from_note_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/graphql/mutations/incident_management/timeline_event/promote_from_note_spec.rb b/spec/graphql/mutations/incident_management/timeline_event/promote_from_note_spec.rb index 4541f8af7d3..56514c985ff 100644 --- a/spec/graphql/mutations/incident_management/timeline_event/promote_from_note_spec.rb +++ b/spec/graphql/mutations/incident_management/timeline_event/promote_from_note_spec.rb @@ -3,6 +3,8 @@ require 'spec_helper' RSpec.describe Mutations::IncidentManagement::TimelineEvent::PromoteFromNote do + include NotesHelper + let_it_be(:current_user) { create(:user) } let_it_be(:project) { create(:project) } let_it_be(:incident) { create(:incident, project: project) } @@ -23,7 +25,7 @@ RSpec.describe Mutations::IncidentManagement::TimelineEvent::PromoteFromNote do let(:expected_timeline_event) do instance_double( 'IncidentManagement::TimelineEvent', - note: comment.note, + note: "@#{comment.author.username} [commented](#{noteable_note_url(comment)}): '#{comment.note}'", occurred_at: comment.created_at.to_s, incident: incident, author: current_user, |