Move CarrierWave test env config to separate file
This commit is contained in:
parent
7b11da632a
commit
6e747d720d
|
@ -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
|
Loading…
Reference in New Issue