Module: CarrierWaveExtSpecHelper
- Defined in:
- lib/carrierwave_ext/spec.rb
Instance Method Summary collapse
Instance Method Details
#with_files ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/carrierwave_ext/spec.rb', line 6 def with_files before do CarrierWave.configure do |config| config.storage = :file config.enable_processing = false config.cache_dir = TEST_CACHE_PATH config.root = TEST_PATH end end before do [TEST_PATH, TEST_CACHE_PATH].each{|p| FileUtils.rm_r(p) if File.exist?(p)} end before do [TEST_PATH, TEST_CACHE_PATH].each{|p| FileUtils.rm_r(p) if File.exist?(p)} end end |