diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a769bcb2a5a7a0c922ccaa8bcf2136a245814f02..596d607f2a169e77d9f92536f7442fc9b96ca221 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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' diff --git a/spec/support/carrierwave.rb b/spec/support/carrierwave.rb new file mode 100644 index 0000000000000000000000000000000000000000..aa89afd8fb36d53e6b69a2d76cad8b71b25c59cc --- /dev/null +++ b/spec/support/carrierwave.rb @@ -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