summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-12-11 17:52:52 +0000
committerPhil Hughes <me@iamphill.com>2017-12-11 17:52:52 +0000
commite001f4b77265fb5430bab0271a5838df388cf8ea (patch)
tree935e374cf34f9e2e5c66218c4374d45b40c0209e
parentdec420feb39975fefd15460f372369071c346d53 (diff)
downloadgitlab-ce-e001f4b77265fb5430bab0271a5838df388cf8ea.tar.gz
fixed failing tests
-rw-r--r--spec/helpers/tree_helper_spec.rb1
-rw-r--r--spec/views/projects/tree/show.html.haml_spec.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/spec/helpers/tree_helper_spec.rb b/spec/helpers/tree_helper_spec.rb
index c358ccae9c3..c6ee06ef8d7 100644
--- a/spec/helpers/tree_helper_spec.rb
+++ b/spec/helpers/tree_helper_spec.rb
@@ -9,6 +9,7 @@ describe TreeHelper do
before do
@id = sha
@project = project
+ @lfs_blobs = []
end
it 'displays all entries without a warning' do
diff --git a/spec/views/projects/tree/show.html.haml_spec.rb b/spec/views/projects/tree/show.html.haml_spec.rb
index 3c25e341b39..9769f28e546 100644
--- a/spec/views/projects/tree/show.html.haml_spec.rb
+++ b/spec/views/projects/tree/show.html.haml_spec.rb
@@ -9,6 +9,7 @@ describe 'projects/tree/show' do
before do
assign(:project, project)
assign(:repository, repository)
+ assign(:lfs_blobs, [])
allow(view).to receive(:can?).and_return(true)
allow(view).to receive(:can_collaborate_with_project?).and_return(true)