Allows tests to run against FOG_RC setting
dce5e800fd
introduced
changes in the test helper to use a specific test file (`tests/.fog`)
and set of credentials (`default`) for tests.
This changes this to honour the existing environment variables if set.
This commit is contained in:
parent
e67eba360c
commit
aae6ed3686
|
@ -1,5 +1,5 @@
|
|||
ENV['FOG_RC'] = File.expand_path '../.fog', __FILE__
|
||||
ENV['FOG_CREDENTIAL'] = 'default'
|
||||
ENV['FOG_RC'] = ENV['FOG_RC'] || File.expand_path('../.fog', __FILE__)
|
||||
ENV['FOG_CREDENTIAL'] = ENV['FOG_CREDENTIAL'] || 'default'
|
||||
|
||||
require 'fog'
|
||||
require 'fog/bin' # for available_providers and registered_providers
|
||||
|
|
Loading…
Reference in New Issue