[rubygems/rubygems] Better teardown
https://github.com/rubygems/rubygems/commit/5fa0ebf09b
This commit is contained in:
parent
a17b1b19b1
commit
151ae9790f
@ -10,8 +10,8 @@ class TestGemCommandsExecCommand < Gem::TestCase
|
|||||||
@cmd = Gem::Commands::ExecCommand.new
|
@cmd = Gem::Commands::ExecCommand.new
|
||||||
|
|
||||||
@orig_args = Gem::Command.build_args
|
@orig_args = Gem::Command.build_args
|
||||||
|
@orig_specific_extra_args = Gem::Command.specific_extra_args_hash.dup
|
||||||
common_installer_setup
|
@orig_extra_args = Gem::Command.extra_args.dup
|
||||||
|
|
||||||
@gem_home = Gem.dir
|
@gem_home = Gem.dir
|
||||||
@gem_path = Gem.path
|
@gem_path = Gem.path
|
||||||
@ -27,6 +27,8 @@ class TestGemCommandsExecCommand < Gem::TestCase
|
|||||||
common_installer_teardown
|
common_installer_teardown
|
||||||
|
|
||||||
Gem::Command.build_args = @orig_args
|
Gem::Command.build_args = @orig_args
|
||||||
|
Gem::Command.specific_extra_args_hash = @orig_specific_extra_args
|
||||||
|
Gem::Command.extra_args = @orig_extra_args
|
||||||
Gem.configuration = nil
|
Gem.configuration = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user