Module: Rad::CarrierWaveSpecHelper

Defined in:
lib/kit/spec.rb

Overview

CarrierWave

Instance Method Summary collapse

Instance Method Details

#with_filesObject



42
43
44
45
46
47
48
49
50
51
# File 'lib/kit/spec.rb', line 42

def with_files
  before do
    rad.config.fs_path       = CarrierWaveExtSpecHelper::TEST_PATH
    rad.config.fs_cache_path = CarrierWaveExtSpecHelper::TEST_CACHE_PATH
    
    Models::FileUploader.storage :file
  end
  
  super            
end