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

Revert "[core] make sure credentials tests properly reset after completion"

This reverts commit 7ac7bbe3af.
This commit is contained in:
geemus 2011-09-23 16:43:34 -05:00
parent 01ad63b5d2
commit 1e72d3b600

View file

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