summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2017-08-07 11:07:42 +0200
committerGabriel Mazetto <brodock@gmail.com>2017-08-22 06:33:20 +0200
commite7a060321fed61085c7d70d23e9ea33825d1467f (patch)
treee59b5fd808c21cd819ae62930839c29a99dc6ef9 /spec
parent72250a4ed8978b32c2e12dd05fc6feb8132e4083 (diff)
downloadgitlab-ce-e7a060321fed61085c7d70d23e9ea33825d1467f.tar.gz
Moving away from the "extend" based factory to a more traditional one.
Using `extend` dynamically can lead to bad performance as it invalidates the method's cache.
Diffstat (limited to 'spec')
-rw-r--r--spec/models/project_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index e6fde833c6b..8ff25a6cf6b 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -2395,11 +2395,12 @@ describe Project do
end
context 'hashed storage' do
- let(:project) { create(:project, :repository, :hashed) }
+ let(:project) { create(:project, :repository) }
let(:gitlab_shell) { Gitlab::Shell.new }
let(:hash) { '6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b' }
before do
+ stub_application_setting(hashed_storage_enabled: true)
allow(Digest::SHA2).to receive(:hexdigest) { hash }
end