From ccf89700470a6345db9d8980485fd7ba3c3b4bcb Mon Sep 17 00:00:00 2001 From: Guillaume Lazzara Date: Tue, 24 May 2016 17:24:47 +0200 Subject: [PATCH] Do not load fog configuration if feature is disabled --- spec/spec_helper.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index da8d5abc4..7411d7377 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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 }