Clear Carrierwave upload after each test example
This commit is contained in:
parent
78529bbd19
commit
d917ac0f86
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue