Skip to content

Commit

Permalink
solaris doesn't take http for handle_options
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed Oct 27, 2015
1 parent 2d53edd commit a7e391d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/rubygems/test_gem_commands_server_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ def test_handle_options_port
@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]
Expand Down

0 comments on commit a7e391d

Please sign in to comment.