Do not load fog configuration if feature is disabled

This commit is contained in:
Guillaume Lazzara 2016-05-24 17:24:47 +02:00
parent e973286766
commit ccf8970047

View file

@ -105,9 +105,11 @@ RSpec.configure do |config|
config.before(:all) {
Warden.test_mode!
VCR.use_cassette("ovh_storage_init") do
CarrierWave.configure do |config|
config.fog_credentials = { provider: 'OpenStack' }
if Features.remote_storage
VCR.use_cassette("ovh_storage_init") do
CarrierWave.configure do |config|
config.fog_credentials = { provider: 'OpenStack' }
end
end
end
}