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

[core] properly fix credentials tests

This commit is contained in:
geemus 2011-09-23 16:44:39 -05:00
parent 1e72d3b600
commit d3073af15a

View file

@ -3,6 +3,7 @@ Shindo.tests do
@old_home = ENV['HOME'] @old_home = ENV['HOME']
@old_rc = ENV['FOG_RC'] @old_rc = ENV['FOG_RC']
@old_credential = ENV['FOG_CREDENTIAL'] @old_credential = ENV['FOG_CREDENTIAL']
@old_credentials = Fog.credentials
Fog.instance_variable_set('@credential_path', nil) # kill memoization Fog.instance_variable_set('@credential_path', nil) # kill memoization
Fog.instance_variable_set('@credential', nil) # kill memoization Fog.instance_variable_set('@credential', nil) # kill memoization
end end
@ -11,6 +12,7 @@ Shindo.tests do
ENV['HOME'] = @old_home ENV['HOME'] = @old_home
ENV['FOG_RC'] = @old_rc ENV['FOG_RC'] = @old_rc
ENV['FOG_CREDENTIAL'] = @old_credential ENV['FOG_CREDENTIAL'] = @old_credential
Fog.credentials = @old_credentials
end end
tests('credential') do tests('credential') do