Commit 6e747d72 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Move CarrierWave test env config to separate file

parent 7b11da63
...@@ -45,10 +45,6 @@ RSpec.configure do |config| ...@@ -45,10 +45,6 @@ RSpec.configure do |config|
config.before(:suite) do config.before(:suite) do
TestEnv.init TestEnv.init
end end
config.after(:suite) do
FileUtils.rm_rf('tmp/tests/files')
end
end end
FactoryGirl::SyntaxRunner.class_eval do FactoryGirl::SyntaxRunner.class_eval do
...@@ -62,4 +58,3 @@ RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator.class_eval do ...@@ -62,4 +58,3 @@ RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator.class_eval do
end end
ActiveRecord::Migration.maintain_test_schema! ActiveRecord::Migration.maintain_test_schema!
CarrierWave.root = 'tmp/tests/files'
CarrierWave.root = 'tmp/tests/uploads'
RSpec.configure do |config|
config.after(:suite) do
FileUtils.rm_rf('tmp/tests/uploads')
end
end
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