Commit 9c132216 authored by Phil Hughes's avatar Phil Hughes

spec fixes

parent 7d2affef
...@@ -9,7 +9,7 @@ describe TreeHelper do ...@@ -9,7 +9,7 @@ describe TreeHelper do
before do before do
@id = sha @id = sha
@project = project @project = project
@lfs_blobs = [] @lfs_blob_ids = []
end end
it 'displays all entries without a warning' do it 'displays all entries without a warning' do
......
...@@ -9,7 +9,7 @@ describe 'projects/tree/_blob_item' do ...@@ -9,7 +9,7 @@ describe 'projects/tree/_blob_item' do
assign(:project, project) assign(:project, project)
assign(:repository, repository) assign(:repository, repository)
assign(:id, File.join('master', '')) assign(:id, File.join('master', ''))
assign(:lfs_blobs, []) assign(:lfs_blob_ids, [])
end end
it 'renders blob item' do it 'renders blob item' do
...@@ -21,7 +21,7 @@ describe 'projects/tree/_blob_item' do ...@@ -21,7 +21,7 @@ describe 'projects/tree/_blob_item' do
describe 'LFS blob' do describe 'LFS blob' do
before do before do
assign(:lfs_blobs, [blob_item]) assign(:lfs_blob_ids, [blob_item].map(&:id))
render_partial(blob_item) render_partial(blob_item)
end end
......
...@@ -9,7 +9,7 @@ describe 'projects/tree/show' do ...@@ -9,7 +9,7 @@ describe 'projects/tree/show' do
before do before do
assign(:project, project) assign(:project, project)
assign(:repository, repository) assign(:repository, repository)
assign(:lfs_blobs, []) assign(:lfs_blob_ids, [])
allow(view).to receive(:can?).and_return(true) allow(view).to receive(:can?).and_return(true)
allow(view).to receive(:can_collaborate_with_project?).and_return(true) allow(view).to receive(:can_collaborate_with_project?).and_return(true)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment