diff options
Diffstat (limited to 'spec/models/tree_spec.rb')
-rw-r--r-- | spec/models/tree_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/tree_spec.rb b/spec/models/tree_spec.rb index b7a8276ec55..20d786f311f 100644 --- a/spec/models/tree_spec.rb +++ b/spec/models/tree_spec.rb @@ -3,7 +3,8 @@ require 'spec_helper' RSpec.describe Tree do - let(:repository) { create(:project, :repository).repository } + let_it_be(:repository) { create(:project, :repository).repository } + let(:sha) { repository.root_ref } subject(:tree) { described_class.new(repository, '54fcc214') } |