summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-10-10 10:23:40 +0000
committerYorick Peterse <yorickpeterse@gmail.com>2016-10-10 10:23:40 +0000
commit2e55580b90d8605f0f37d9469e135354deabdb0b (patch)
tree5554bdcc30e03c92478ff6921a187d45371e4408 /spec
parent2879da8cda500e2baaee336df8d8b569b94b2b96 (diff)
parent67b85665777c7ee4d808a58bff8fbe199cfdbab2 (diff)
downloadgitlab-ce-2e55580b90d8605f0f37d9469e135354deabdb0b.tar.gz
Merge branch 'tests-use-tmpfs' into 'master'
Try tmpfs for repository storage, etc See merge request !6730
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index b19f5824236..f313bd4f249 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -50,6 +50,11 @@ RSpec.configure do |config|
example.run
Rails.cache = caching_store
end
+
+ config.after(:each) do
+ FileUtils.rm_rf("tmp/tests/repositories")
+ FileUtils.mkdir_p("tmp/tests/repositories")
+ end
end
FactoryGirl::SyntaxRunner.class_eval do