Commit 3b943fbb authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix the test due to the format changed

parent 7209ea4f
...@@ -5,15 +5,17 @@ describe SlackService::PipelineMessage do ...@@ -5,15 +5,17 @@ describe SlackService::PipelineMessage do
let(:args) do let(:args) do
{ {
sha: '97de212e80737a608d939f648d959671fb0a0142', object_attributes: {
tag: false, id: 123,
ref: 'develop', sha: '97de212e80737a608d939f648d959671fb0a0142',
status: status, tag: false,
ref: 'develop',
status: status,
duration: duration
},
project: { path_with_namespace: 'project_name', project: { path_with_namespace: 'project_name',
web_url: 'somewhere.com' }, web_url: 'somewhere.com' },
commit: { author_name: 'hacker' }, commit: { author_name: 'hacker' }
object_attributes: { duration: duration,
id: 123 }
} }
end end
......
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