diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2023-02-21 16:48:47 -0800 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-02-22 08:42:20 +0000 |
commit | 151ae9790fa815950846b2f701772d772907dda7 (patch) | |
tree | 8ac4ea463235f5967858585b7f3503d3e8dd37c7 /test | |
parent | a17b1b19b151c82319c244f3955101a4c9bffc0f (diff) |
[rubygems/rubygems] Better teardown
https://github.com/rubygems/rubygems/commit/5fa0ebf09b
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_gem_commands_exec_command.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_commands_exec_command.rb b/test/rubygems/test_gem_commands_exec_command.rb index 8af521b306..ef1bd3b9d3 100644 --- a/test/rubygems/test_gem_commands_exec_command.rb +++ b/test/rubygems/test_gem_commands_exec_command.rb @@ -10,8 +10,8 @@ class TestGemCommandsExecCommand < Gem::TestCase @cmd = Gem::Commands::ExecCommand.new @orig_args = Gem::Command.build_args - - common_installer_setup + @orig_specific_extra_args = Gem::Command.specific_extra_args_hash.dup + @orig_extra_args = Gem::Command.extra_args.dup @gem_home = Gem.dir @gem_path = Gem.path @@ -27,6 +27,8 @@ class TestGemCommandsExecCommand < Gem::TestCase common_installer_teardown 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 end |