Move CarrierWave test env config to separate file

This commit is contained in:
Grzegorz Bizon 2016-03-30 13:57:01 +02:00
parent 7b11da632a
commit 6e747d720d
2 changed files with 7 additions and 5 deletions

View File

@ -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'

View File

@ -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