summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-01 17:09:26 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-08-01 17:09:26 +0800
commit3b943fbb9603dd5babe7f9348aef79a52ac10c45 (patch)
treecc17dd01beb74c45a88f7a92980c7e28773c422b
parent7209ea4fd7aac3517472851d107567e89eccb7e8 (diff)
downloadgitlab-ce-3b943fbb9603dd5babe7f9348aef79a52ac10c45.tar.gz
Fix the test due to the format changed
-rw-r--r--spec/models/project_services/slack_service/pipeline_message_spec.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/spec/models/project_services/slack_service/pipeline_message_spec.rb b/spec/models/project_services/slack_service/pipeline_message_spec.rb
index 2960a200e9d..a292defee66 100644
--- a/spec/models/project_services/slack_service/pipeline_message_spec.rb
+++ b/spec/models/project_services/slack_service/pipeline_message_spec.rb
@@ -5,15 +5,17 @@ describe SlackService::PipelineMessage do
let(:args) do
{
- sha: '97de212e80737a608d939f648d959671fb0a0142',
- tag: false,
- ref: 'develop',
- status: status,
+ object_attributes: {
+ id: 123,
+ sha: '97de212e80737a608d939f648d959671fb0a0142',
+ tag: false,
+ ref: 'develop',
+ status: status,
+ duration: duration
+ },
project: { path_with_namespace: 'project_name',
web_url: 'somewhere.com' },
- commit: { author_name: 'hacker' },
- object_attributes: { duration: duration,
- id: 123 }
+ commit: { author_name: 'hacker' }
}
end