Commit 39a545d2 authored by Sebastian Klier's avatar Sebastian Klier

Fix test

parent 6b8bb8f4
...@@ -26,7 +26,7 @@ describe SlackService::WikiPageMessage, models: true do ...@@ -26,7 +26,7 @@ describe SlackService::WikiPageMessage, models: true do
before { args[:object_attributes][:action] = 'create' } before { args[:object_attributes][:action] = 'create' }
it do it do
expect(pretext).to eq( expect(subject.pretext).to eq(
'Test User created <url|wiki page> in <somewhere.com|project_name>: '\ 'Test User created <url|wiki page> in <somewhere.com|project_name>: '\
'*Wiki page title*') '*Wiki page title*')
end end
...@@ -36,7 +36,7 @@ describe SlackService::WikiPageMessage, models: true do ...@@ -36,7 +36,7 @@ describe SlackService::WikiPageMessage, models: true do
before { args[:object_attributes][:action] = 'update' } before { args[:object_attributes][:action] = 'update' }
it do it do
expect(pretext).to eq( expect(subject.pretext).to eq(
'Test User edited <url|wiki page> in <somewhere.com|project_name>: '\ 'Test User edited <url|wiki page> in <somewhere.com|project_name>: '\
'*Wiki page title*') '*Wiki page title*')
end end
...@@ -48,7 +48,7 @@ describe SlackService::WikiPageMessage, models: true do ...@@ -48,7 +48,7 @@ describe SlackService::WikiPageMessage, models: true do
before { args[:object_attributes][:action] = 'create' } before { args[:object_attributes][:action] = 'create' }
it do it do
expect(attachments).to eq([ expect(subject.attachments).to eq([
{ {
text: "Wiki page description", text: "Wiki page description",
color: color, color: color,
...@@ -61,7 +61,7 @@ describe SlackService::WikiPageMessage, models: true do ...@@ -61,7 +61,7 @@ describe SlackService::WikiPageMessage, models: true do
before { args[:object_attributes][:action] = 'update' } before { args[:object_attributes][:action] = 'update' }
it do it do
expect(attachments).to eq([ expect(subject.attachments).to eq([
{ {
text: "Wiki page description", text: "Wiki page description",
color: color, color: color,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment