Sha256: 315d498688a3b0678ce0ea734cbe716424c5b2cb29cc0b59b49ace6b75c799c8

Contents?: true

Size: 472 Bytes

Versions: 18

Compression:

Stored size: 472 Bytes

Contents

# Bootstraps and enables mocking for CarrierWave and Fog
credentials = {
  provider: 'AWS',
  aws_access_key_id: 'TEST',
  aws_secret_access_key: 'TEST'
}

CarrierWave.configure do |config|
  config.root      = Landable::Engine.root.join('tmp')
  config.cache_dir = Landable::Engine.root.join('tmp/carrier_wave')

  config.fog_credentials = credentials
  config.fog_directory   = 'landable'
end

Fog.mock!
Fog::Storage.new(credentials).directories.create(key: 'landable')

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
landable-1.14.0 spec/support/carrier_wave.rb
landable-1.13.2 spec/support/carrier_wave.rb
landable-1.13.1 spec/support/carrier_wave.rb
landable-1.12.3 spec/support/carrier_wave.rb
landable-1.12.2 spec/support/carrier_wave.rb
landable-1.12.1 spec/support/carrier_wave.rb
landable-1.11.1 spec/support/carrier_wave.rb
landable-1.11.0 spec/support/carrier_wave.rb
landable-1.10.0.rc2 spec/support/carrier_wave.rb
landable-1.10.0.rc1 spec/support/carrier_wave.rb
landable-1.9.2 spec/support/carrier_wave.rb
landable-1.9.1 spec/support/carrier_wave.rb
landable-1.9.0 spec/support/carrier_wave.rb
landable-1.9.0.rc2 spec/support/carrier_wave.rb
landable-1.9.0.rc1 spec/support/carrier_wave.rb
landable-1.8.0 spec/support/carrier_wave.rb
landable-1.7.1.rc1 spec/support/carrier_wave.rb
landable-1.7.0 spec/support/carrier_wave.rb