mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
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
This commit is contained in:
parent
89bfee6fd4
commit
e82802070a
9 changed files with 212 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue