1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

solaris doesn't take http for handle_options

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2015-10-27 20:47:23 +00:00
parent 2d53edd923
commit a7e391d279

View file

@ -37,8 +37,11 @@ class TestGemCommandsServerCommand < Gem::TestCase
@cmd.send :handle_options, %w[-p 65535]
assert_equal 65535, @cmd.options[:port]
@cmd.send :handle_options, %w[-p http]
assert_equal 80, @cmd.options[:port]
if /solaris/ !~ RUBY_PLATFORM
# solaris will raise OptionParser::InvalidArgument
@cmd.send :handle_options, %w[-p http]
assert_equal 80, @cmd.options[:port]
end
e = assert_raises OptionParser::InvalidArgument do
@cmd.send :handle_options, %w[-p nonexistent]