From cb34be7dd224aebe4adf7ea8a11663bf5e82d103 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Wed, 16 Nov 2016 22:52:37 +0800 Subject: Fix pipeline author for Slack and use pipeline id rather than using SHA for the pipeline link. --- spec/models/project_services/slack_service/pipeline_message_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/models') 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 babb3909f56..363138a9454 100644 --- a/spec/models/project_services/slack_service/pipeline_message_spec.rb +++ b/spec/models/project_services/slack_service/pipeline_message_spec.rb @@ -15,7 +15,7 @@ describe SlackService::PipelineMessage do }, project: { path_with_namespace: 'project_name', web_url: 'example.gitlab.com' }, - commit: { author_name: 'hacker' } + user: { name: 'hacker' } } end @@ -48,7 +48,7 @@ describe SlackService::PipelineMessage do def build_message(status_text = status) ":" \ - " Pipeline " \ + " Pipeline " \ " of branch" \ " by hacker #{status_text} in #{duration} #{'second'.pluralize(duration)}" end -- cgit v1.2.3