@@ -16,7 +16,7 @@ RSpec.describe ChatMessage::MergeMessage do
project_url: 'http://somewhere.com',
object_attributes: {
title: "Merge Request title\nSecond line",
title: "Merge request title\nSecond line",
id: 10,
iid: 100,
assignee_id: 1,
...
...
@@ -35,7 +35,7 @@ RSpec.describe ChatMessage::MergeMessage do
context'open'do
it'returns a message regarding opening of merge requests'do
expect(subject.pretext).toeq(
'Test User (test.user) opened merge request <http://somewhere.com/-/merge_requests/100|!100 *Merge Request title*> in <http://somewhere.com|project_name>')
'Test User (test.user) opened merge request <http://somewhere.com/-/merge_requests/100|!100 *Merge request title*> in <http://somewhere.com|project_name>')
expect(subject.attachments).tobe_empty
end
end
...
...
@@ -46,7 +46,7 @@ RSpec.describe ChatMessage::MergeMessage do
end
it'returns a message regarding closing of merge requests'do
expect(subject.pretext).toeq(
'Test User (test.user) closed merge request <http://somewhere.com/-/merge_requests/100|!100 *Merge Request title*> in <http://somewhere.com|project_name>')
'Test User (test.user) closed merge request <http://somewhere.com/-/merge_requests/100|!100 *Merge request title*> in <http://somewhere.com|project_name>')
expect(subject.attachments).tobe_empty
end
end
...
...
@@ -60,12 +60,12 @@ RSpec.describe ChatMessage::MergeMessage do
context'open'do
it'returns a message regarding opening of merge requests'do
expect(subject.pretext).toeq(
'Test User (test.user) opened merge request [!100 *Merge Request title*](http://somewhere.com/-/merge_requests/100) in [project_name](http://somewhere.com)')
'Test User (test.user) opened merge request [!100 *Merge request title*](http://somewhere.com/-/merge_requests/100) in [project_name](http://somewhere.com)')
expect(subject.attachments).tobe_empty
expect(subject.activity).toeq({
title: 'Merge Request opened by Test User (test.user)',
title: 'Merge request opened by Test User (test.user)',