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:
parent
1e72d3b600
commit
d3073af15a
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@ Shindo.tests do
|
|||
@old_home = ENV['HOME']
|
||||
@old_rc = ENV['FOG_RC']
|
||||
@old_credential = ENV['FOG_CREDENTIAL']
|
||||
@old_credentials = Fog.credentials
|
||||
Fog.instance_variable_set('@credential_path', nil) # kill memoization
|
||||
Fog.instance_variable_set('@credential', nil) # kill memoization
|
||||
end
|
||||
|
@ -11,6 +12,7 @@ Shindo.tests do
|
|||
ENV['HOME'] = @old_home
|
||||
ENV['FOG_RC'] = @old_rc
|
||||
ENV['FOG_CREDENTIAL'] = @old_credential
|
||||
Fog.credentials = @old_credentials
|
||||
end
|
||||
|
||||
tests('credential') do
|
||||
|
|
Loading…
Reference in a new issue