spec fixes
This commit is contained in:
		
							parent
							
								
									7d2affeff1
								
							
						
					
					
						commit
						9c132216b7
					
				|  | @ -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 | ||||||
|     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 | ||||||
|  |  | ||||||
|  | @ -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) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue