1 2 3 4 5 6 7
CarrierWave.root = File.expand_path('tmp/tests/public', Rails.root) RSpec.configure do |config| config.after(:each) do FileUtils.rm_rf(CarrierWave.root) end end