summaryrefslogtreecommitdiff
path: root/spec/views/projects/merge_requests/_commits.html.haml_spec.rb
diff options
context:
space:
mode:
authorShah El-Rahman <selrahman@gitlab.com>2018-04-06 13:35:07 +0000
committerTim Zallmann <tzallmann@gitlab.com>2018-04-06 13:35:07 +0000
commitfccc09be2058fd2a8b4c6458830b55a854d3af8e (patch)
treef0786aa6ee2d8094dfacb5281f16679cef3e438a /spec/views/projects/merge_requests/_commits.html.haml_spec.rb
parente5d32c2c0cf37d7feeabaadd4b7f2e8523a3cd03 (diff)
downloadgitlab-ce-fccc09be2058fd2a8b4c6458830b55a854d3af8e.tar.gz
Implement a new SHA partial for commit lists
Diffstat (limited to 'spec/views/projects/merge_requests/_commits.html.haml_spec.rb')
-rw-r--r--spec/views/projects/merge_requests/_commits.html.haml_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/views/projects/merge_requests/_commits.html.haml_spec.rb b/spec/views/projects/merge_requests/_commits.html.haml_spec.rb
index 3ca67114558..b1c6565c08a 100644
--- a/spec/views/projects/merge_requests/_commits.html.haml_spec.rb
+++ b/spec/views/projects/merge_requests/_commits.html.haml_spec.rb
@@ -28,6 +28,6 @@ describe 'projects/merge_requests/_commits.html.haml' do
commit = merge_request.commits.first # HEAD
href = diffs_project_merge_request_path(target_project, merge_request, commit_id: commit)
- expect(rendered).to have_link(Commit.truncate_sha(commit.sha), href: href)
+ expect(rendered).to have_link(href: href)
end
end