From 61f70334efa3ff4a2eda4a1d29c2ee59ecb82721 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 31 Jul 2014 19:35:07 +0300 Subject: Cleanup test dir before install gitlab-shell. Fix fork test scenario Signed-off-by: Dmitriy Zaporozhets --- spec/support/test_env.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec') diff --git a/spec/support/test_env.rb b/spec/support/test_env.rb index f46405f238b..9e8339ff71a 100644 --- a/spec/support/test_env.rb +++ b/spec/support/test_env.rb @@ -13,14 +13,14 @@ module TestEnv # Disable mailer for spinach tests disable_mailer if opts[:mailer] == false - # 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) + # Setup GitLab shell for test instance + setup_gitlab_shell + # Create repository for FactoryGirl.create(:project) setup_factory_repo end -- cgit v1.2.1