@@ -52,7 +52,7 @@ 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 <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
...
...
@@ -63,7 +63,7 @@ describe ChatMessage::MergeMessage do
end
it'returns a message regarding closing of merge requests'do
expect(subject.pretext).toeq(
'Test User (test.user) closed <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
...
...
@@ -77,7 +77,7 @@ 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 [!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)',
...
...
@@ -95,7 +95,7 @@ describe ChatMessage::MergeMessage do
it'returns a message regarding closing of merge requests'do
expect(subject.pretext).toeq(
'Test User (test.user) closed [!100 *Merge Request title*](http://somewhere.com/-/merge_requests/100) in [project_name](http://somewhere.com)')
'Test User (test.user) closed 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 closed by Test User (test.user)',