summaryrefslogtreecommitdiff
path: root/spec/views
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-12-14 11:31:50 +0000
committerPhil Hughes <me@iamphill.com>2017-12-14 11:31:50 +0000
commit9c132216b74258d900d7bbfb88f158d53ede90b7 (patch)
treee78aff2b05cabd499ce820809a09343a6e24472c /spec/views
parent7d2affeff1885fb9984fed1088c8dffdc41a7320 (diff)
downloadgitlab-ce-9c132216b74258d900d7bbfb88f158d53ede90b7.tar.gz
spec fixes
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/projects/tree/_blob_item.html.haml_spec.rb4
-rw-r--r--spec/views/projects/tree/show.html.haml_spec.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/views/projects/tree/_blob_item.html.haml_spec.rb b/spec/views/projects/tree/_blob_item.html.haml_spec.rb
index 8fb89851a60..6a477c712ff 100644
--- a/spec/views/projects/tree/_blob_item.html.haml_spec.rb
+++ b/spec/views/projects/tree/_blob_item.html.haml_spec.rb
@@ -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
diff --git a/spec/views/projects/tree/show.html.haml_spec.rb b/spec/views/projects/tree/show.html.haml_spec.rb
index 9769f28e546..44b32df0395 100644
--- a/spec/views/projects/tree/show.html.haml_spec.rb
+++ b/spec/views/projects/tree/show.html.haml_spec.rb
@@ -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)