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

Fix test

parent 6b8bb8f4
......@@ -26,7 +26,7 @@ describe SlackService::WikiPageMessage, models: true do
before { args[:object_attributes][:action] = 'create' }
it do
expect(pretext).to eq(
expect(subject.pretext).to eq(
'Test User created <url|wiki page> in <somewhere.com|project_name>: '\
'*Wiki page title*')
end
......@@ -36,7 +36,7 @@ describe SlackService::WikiPageMessage, models: true do
before { args[:object_attributes][:action] = 'update' }
it do
expect(pretext).to eq(
expect(subject.pretext).to eq(
'Test User edited <url|wiki page> in <somewhere.com|project_name>: '\
'*Wiki page title*')
end
......@@ -48,7 +48,7 @@ describe SlackService::WikiPageMessage, models: true do
before { args[:object_attributes][:action] = 'create' }
it do
expect(attachments).to eq([
expect(subject.attachments).to eq([
{
text: "Wiki page description",
color: color,
......@@ -61,7 +61,7 @@ describe SlackService::WikiPageMessage, models: true do
before { args[:object_attributes][:action] = 'update' }
it do
expect(attachments).to eq([
expect(subject.attachments).to eq([
{
text: "Wiki page description",
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