Make use of fog_credentials.test.yml for testing.

This commit is contained in:
Guillaume Lazzara 2016-05-20 16:27:32 +02:00
parent 745eee126a
commit d6a3884c81
2 changed files with 9 additions and 5 deletions

View file

@ -1,6 +1,10 @@
require_relative 'features'
Fog.credentials_path = Rails.root.join('config/fog_credentials.yml')
if Rails.env.test?
Fog.credentials_path = Rails.root.join('config/fog_credentials.test.yml')
else
Fog.credentials_path = Rails.root.join('config/fog_credentials.yml')
end
CarrierWave.configure do |config|
# These permissions will make dir and files available only to the user running