diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-17 09:23:00 -0500 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-05-17 20:59:26 +0300 |
commit | d3b24a7638de71ee1286200978e0b6d0b33d0753 (patch) | |
tree | 498c4ed238cae6026acc38cb087a3152ee20dfa3 /spec/views | |
parent | fb67ea491ba86cb012e58d0e338039acd61400dd (diff) | |
download | gitlab-ce-d3b24a7638de71ee1286200978e0b6d0b33d0753.tar.gz |
Show last commit for current tree on tree page
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/tree/show.html.haml_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/views/projects/tree/show.html.haml_spec.rb b/spec/views/projects/tree/show.html.haml_spec.rb index 835a93e620e..33eba3e6d3d 100644 --- a/spec/views/projects/tree/show.html.haml_spec.rb +++ b/spec/views/projects/tree/show.html.haml_spec.rb @@ -21,11 +21,11 @@ describe 'projects/tree/show' do let(:tree) { repository.tree(commit.id, path) } before do + assign(:id, File.join(ref, path)) assign(:ref, ref) - assign(:commit, commit) - assign(:id, commit.id) - assign(:tree, tree) assign(:path, path) + assign(:last_commit, commit) + assign(:tree, tree) end it 'displays correctly' do |