summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_command.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-28 22:30:28 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-28 22:30:28 +0000
commite82802070a6b64c86a09731497ef9eafaebdee5c (patch)
treeb11757bd1c2a1627bdd1ebe1c38beb747d67e837 /test/rubygems/test_gem_command.rb
parent89bfee6fd47d059ca2a95159eb964f37bdbb3f2c (diff)
Merge rubygems-2.7.3.
http://blog.rubygems.org/2017/11/28/2.7.3-released.html git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_command.rb')
-rw-r--r--test/rubygems/test_gem_command.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_command.rb b/test/rubygems/test_gem_command.rb
index 913cd72aa0..4442c6108e 100644
--- a/test/rubygems/test_gem_command.rb
+++ b/test/rubygems/test_gem_command.rb
@@ -13,6 +13,7 @@ class TestGemCommand < Gem::TestCase
@xopt = nil
+ @common_options = Gem::Command.common_options.dup
Gem::Command.common_options.clear
Gem::Command.common_options << [
['-x', '--exe', 'Execute'], lambda do |*a|
@@ -24,6 +25,11 @@ class TestGemCommand < Gem::TestCase
@cmd = Gem::Command.new @cmd_name, 'summary'
end
+ def teardown
+ super
+ Gem::Command.common_options.replace @common_options
+ end
+
def test_self_add_specific_extra_args
added_args = %w[--all]
@cmd.add_option '--all' do |v,o| end