diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-11-16 22:52:37 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-11-16 22:52:37 +0800 |
commit | cb34be7dd224aebe4adf7ea8a11663bf5e82d103 (patch) | |
tree | dd6c8a5151f6658194cf0af94369fe30e42de8c4 /spec | |
parent | 3255401e06a16ea259cdbe730f546a6fc98d5540 (diff) | |
download | gitlab-ce-cb34be7dd224aebe4adf7ea8a11663bf5e82d103.tar.gz |
Fix pipeline author for Slack and use pipeline id
rather than using SHA for the pipeline link.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/project_services/slack_service/pipeline_message_spec.rb | 4 |
1 files changed, 2 insertions, 2 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 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) "<example.gitlab.com|project_name>:" \ - " Pipeline <example.gitlab.com/pipelines/123|97de212e>" \ + " Pipeline <example.gitlab.com/pipelines/123|#123>" \ " of <example.gitlab.com/commits/develop|develop> branch" \ " by hacker #{status_text} in #{duration} #{'second'.pluralize(duration)}" end |