diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-21 07:14:05 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-21 07:14:05 +0300 |
commit | f614ae8ef71bf1de7deeeaadbdf9a4a8614771b1 (patch) | |
tree | f09dbedbc6818c5f993fe9889391dcbd71fdfb98 /features | |
parent | e9be4b375bf2e4929ca82d06ff0dd4b62c5e9c44 (diff) | |
download | gitlab-ce-f614ae8ef71bf1de7deeeaadbdf9a4a8614771b1.tar.gz |
Increased test coverage
Diffstat (limited to 'features')
-rw-r--r-- | features/support/env.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/features/support/env.rb b/features/support/env.rb index 42aba5a6d68..a30b357718e 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -5,7 +5,7 @@ require 'rspec' require 'database_cleaner' require 'spinach/capybara' -%w(namespaces_stub gitolite_stub stubbed_repository valid_commit).each do |f| +%w(gitolite_stub stubbed_repository valid_commit).each do |f| require Rails.root.join('spec', 'support', f) end @@ -32,6 +32,11 @@ end DatabaseCleaner.strategy = :truncation Spinach.hooks.before_scenario do + # Use tmp dir for FS manipulations + Gitlab.config.stub(git_base_path: Rails.root.join('tmp', 'test-git-base-path')) + FileUtils.rm_rf Gitlab.config.git_base_path + FileUtils.mkdir_p Gitlab.config.git_base_path + DatabaseCleaner.start end |