diff options
Diffstat (limited to 'spec/support/test_env.rb')
-rw-r--r-- | spec/support/test_env.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/test_env.rb b/spec/support/test_env.rb index fc1a920822e..f46405f238b 100644 --- a/spec/support/test_env.rb +++ b/spec/support/test_env.rb @@ -16,6 +16,11 @@ module TestEnv # Setup GitLab shell for test instance setup_gitlab_shell + # Clean /tmp/tests + tmp_test_path = Rails.root.join('tmp', 'tests') + FileUtils.rm_r(tmp_test_path) + FileUtils.mkdir(tmp_test_path) + # Create repository for FactoryGirl.create(:project) setup_factory_repo end |