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
@id = sha
@project = project
@lfs_blobs = []
@lfs_blob_ids = []
end
it 'displays all entries without a warning' do

View File

@ -9,7 +9,7 @@ describe 'projects/tree/_blob_item' do
assign(:project, project)
assign(:repository, repository)
assign(:id, File.join('master', ''))
assign(:lfs_blobs, [])
assign(:lfs_blob_ids, [])
end
it 'renders blob item' do
@ -21,7 +21,7 @@ describe 'projects/tree/_blob_item' do
describe 'LFS blob' do
before do
assign(:lfs_blobs, [blob_item])
assign(:lfs_blob_ids, [blob_item].map(&:id))
render_partial(blob_item)
end

View File

@ -9,7 +9,7 @@ describe 'projects/tree/show' do
before do
assign(:project, project)
assign(:repository, repository)
assign(:lfs_blobs, [])
assign(:lfs_blob_ids, [])
allow(view).to receive(:can?).and_return(true)
allow(view).to receive(:can_collaborate_with_project?).and_return(true)