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:
parent
01ad63b5d2
commit
1e72d3b600
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue