Do not load fog configuration if feature is disabled
This commit is contained in:
parent
e973286766
commit
ccf8970047
1 changed files with 5 additions and 3 deletions
|
@ -105,9 +105,11 @@ RSpec.configure do |config|
|
||||||
config.before(:all) {
|
config.before(:all) {
|
||||||
Warden.test_mode!
|
Warden.test_mode!
|
||||||
|
|
||||||
VCR.use_cassette("ovh_storage_init") do
|
if Features.remote_storage
|
||||||
CarrierWave.configure do |config|
|
VCR.use_cassette("ovh_storage_init") do
|
||||||
config.fog_credentials = { provider: 'OpenStack' }
|
CarrierWave.configure do |config|
|
||||||
|
config.fog_credentials = { provider: 'OpenStack' }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue