Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-21 08:14:05 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-21 08:14:05 +0400
commitf614ae8ef71bf1de7deeeaadbdf9a4a8614771b1 (patch)
treef09dbedbc6818c5f993fe9889391dcbd71fdfb98 /features/support
parente9be4b375bf2e4929ca82d06ff0dd4b62c5e9c44 (diff)
Increased test coverage
Diffstat (limited to 'features/support')
-rw-r--r--features/support/env.rb7
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