diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-03-15 22:17:51 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-03-15 23:59:25 +0300 |
commit | 48274581551b73575149463be0c050f6b5a564ee (patch) | |
tree | b0a73eafdff2a6d5434c6a0b3dc1c5fbeafe74fb /app/services/system_note_service.rb | |
parent | 2b97c921196a7be904bfe4f0a31347c3583c9e88 (diff) |
Incorporate the review and update spec
The feature spec now also tests the absence of the new branch button
Diffstat (limited to 'app/services/system_note_service.rb')
-rw-r--r-- | app/services/system_note_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb index 5ea7d405e4d..f09b77c4a57 100644 --- a/app/services/system_note_service.rb +++ b/app/services/system_note_service.rb @@ -213,9 +213,9 @@ class SystemNoteService # "Started branch `201-issue-branch-button`" def self.new_issue_branch(issue, project, author, branch) h = Gitlab::Application.routes.url_helpers - link = "#{h.namespace_project_compare_url(project.namespace, project, from: project.default_branch, to: branch)}" + link = h.namespace_project_compare_url(project.namespace, project, from: project.default_branch, to: branch) - body = "Started branch [#{branch}](#{link})" + body = "Started branch [`#{branch}`](#{link})" create_note(noteable: issue, project: project, author: author, note: body) end |