diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-11 13:05:31 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-11 13:05:31 +0200 |
commit | 0615de013d1e30d147ca7c62fa62a251567337b1 (patch) | |
tree | 29a0ef63f222209d9e31baf3e54e01d8f224c62d /app/helpers/ci | |
parent | a8dd4d36e2ba2bcf2488ce12aa0809c339653fc8 (diff) | |
download | gitlab-ce-0615de013d1e30d147ca7c62fa62a251567337b1.tar.gz |
Fix ci commits features specs
Diffstat (limited to 'app/helpers/ci')
-rw-r--r-- | app/helpers/ci/commits_helper.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/ci/commits_helper.rb b/app/helpers/ci/commits_helper.rb index 748d12138b1..86f254223cb 100644 --- a/app/helpers/ci/commits_helper.rb +++ b/app/helpers/ci/commits_helper.rb @@ -15,8 +15,12 @@ module Ci end end + def ci_commit_path(commit) + ci_project_ref_commits_path(commit.project, commit.ref, commit.sha) + end + def commit_link(commit) - link_to(commit.short_sha, ci_project_ref_commits_path(commit.project, commit.ref, commit.sha)) + link_to(commit.short_sha, ci_commit_path(commit)) end def truncate_first_line(message, length = 50) |