Clear Carrierwave upload after each test example

This commit is contained in:
Grzegorz Bizon 2016-11-23 09:51:50 +01:00
parent 78529bbd19
commit d917ac0f86

View file

@ -1,7 +1,7 @@
CarrierWave.root = 'tmp/tests/uploads'
RSpec.configure do |config|
config.after(:suite) do
config.after(:each) do
FileUtils.rm_rf('tmp/tests/uploads')
end
end