From e001f4b77265fb5430bab0271a5838df388cf8ea Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Mon, 11 Dec 2017 17:52:52 +0000 Subject: fixed failing tests --- spec/helpers/tree_helper_spec.rb | 1 + spec/views/projects/tree/show.html.haml_spec.rb | 1 + 2 files changed, 2 insertions(+) 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) -- cgit v1.2.1