Increased test coverage
This commit is contained in:
parent
e9be4b375b
commit
f614ae8ef7
7 changed files with 84 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue