mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-17 00:26:07 +10:00
Move CarrierWave test env config to separate file
This commit is contained in:
@@ -45,10 +45,6 @@ RSpec.configure do |config|
|
||||
config.before(:suite) do
|
||||
TestEnv.init
|
||||
end
|
||||
|
||||
config.after(:suite) do
|
||||
FileUtils.rm_rf('tmp/tests/files')
|
||||
end
|
||||
end
|
||||
|
||||
FactoryGirl::SyntaxRunner.class_eval do
|
||||
@@ -62,4 +58,3 @@ RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator.class_eval do
|
||||
end
|
||||
|
||||
ActiveRecord::Migration.maintain_test_schema!
|
||||
CarrierWave.root = 'tmp/tests/files'
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
CarrierWave.root = 'tmp/tests/uploads'
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.after(:suite) do
|
||||
FileUtils.rm_rf('tmp/tests/uploads')
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user