1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

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

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