gitlab-org--gitlab-foss/spec/support/carrierwave.rb
Robert Speicher c4c2ac10d0 Change the default CarrierWave root path for tests
This more closely resembles the development and production paths in that
paths contain `public/uploads`, rather than `uploads/uploads` as they
did before.
2017-03-06 14:41:09 -05:00

7 lines
170 B
Ruby

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