diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-27 20:47:23 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-27 20:47:23 +0000 |
commit | a7e391d279914f0d9fb909e7ca2fffc0ab2175f9 (patch) | |
tree | 02ba0424450a45fc3eec65fa82c9dfc1bf021e17 /test/rubygems | |
parent | 2d53edd923f2bb72efa6d17dcf6ed746f1131920 (diff) |
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
Diffstat (limited to 'test/rubygems')
-rw-r--r-- | test/rubygems/test_gem_commands_server_command.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_commands_server_command.rb b/test/rubygems/test_gem_commands_server_command.rb index db27a4c932..24985633b3 100644 --- a/test/rubygems/test_gem_commands_server_command.rb +++ b/test/rubygems/test_gem_commands_server_command.rb @@ -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] |