summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 62fdc039b5e..2a83bfe133a 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -118,6 +118,12 @@ RSpec.configure do |config|
TestEnv.init
end
+ config.before(:all) do
+ Gitlab.config.repositories.storages.each do |key, storage|
+ storage.instance_variable_set(:@can_use_disk, false)
+ end
+ end
+
config.after(:all) do
TestEnv.clean_test_path
end