spec fixes

This commit is contained in:
Phil Hughes 2017-12-14 11:31:50 +00:00
parent 7d2affeff1
commit 9c132216b7
No known key found for this signature in database
GPG key ID: 32245528C52E0F9F
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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
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

View file

@ -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)