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 /spec/spec_helper.rb
parente9be4b375bf2e4929ca82d06ff0dd4b62c5e9c44 (diff)
Increased test coverage
Diffstat (limited to 'spec/spec_helper.rb')
-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 ace5ca00cc1..7728b1e9d84 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -40,5 +40,10 @@ RSpec.configure do |config|
# !!! Observers disabled by default in tests
ActiveRecord::Base.observers.disable(:all)
# ActiveRecord::Base.observers.enable(:all)
+
+ # 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
end
end