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:
Paul Thornthwaite 2012-10-29 16:14:42 +00:00
parent e67eba360c
commit aae6ed3686
1 changed files with 2 additions and 2 deletions

View File

@ -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