diff options
Diffstat (limited to 'spec/views/projects/tree')
-rw-r--r-- | spec/views/projects/tree/_tree_row.html.haml_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/views/projects/tree/_tree_row.html.haml_spec.rb b/spec/views/projects/tree/_tree_row.html.haml_spec.rb index ff2fe8aeb6c..864272fc146 100644 --- a/spec/views/projects/tree/_tree_row.html.haml_spec.rb +++ b/spec/views/projects/tree/_tree_row.html.haml_spec.rb @@ -5,7 +5,11 @@ require 'spec_helper' describe 'projects/tree/_tree_row' do let(:project) { create(:project, :repository) } let(:repository) { project.repository } + + # rubocop: disable Rails/FindBy + # This is not ActiveRecord where..first let(:blob_item) { Gitlab::Git::Tree.where(repository, SeedRepo::Commit::ID, 'files/ruby').first } + # rubocop: enable Rails/FindBy before do assign(:project, project) |