Commit 7b11da63 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Isolate CarrierWave uploads in test enviroment

parent 828ad5f6
......@@ -45,6 +45,10 @@ 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
......@@ -58,3 +62,4 @@ RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator.class_eval do
end
ActiveRecord::Migration.maintain_test_schema!
CarrierWave.root = 'tmp/tests/files'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment