diff options
Diffstat (limited to 'test/rubygems/test_gem_commands_server_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_server_command.rb | 4 |
1 files changed, 2 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..d0782f9a94 100644 --- a/test/rubygems/test_gem_commands_server_command.rb +++ b/test/rubygems/test_gem_commands_server_command.rb @@ -37,8 +37,8 @@ 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] + @cmd.send :handle_options, %w[-p discard] + assert_equal 9, @cmd.options[:port] e = assert_raises OptionParser::InvalidArgument do @cmd.send :handle_options, %w[-p nonexistent] |