aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_gem_commands_server_command.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/rubygems/test_gem_commands_server_command.rb b/test/rubygems/test_gem_commands_server_command.rb
index 24985633b3..db27a4c932 100644
--- a/test/rubygems/test_gem_commands_server_command.rb
+++ b/test/rubygems/test_gem_commands_server_command.rb
@@ -37,11 +37,8 @@ class TestGemCommandsServerCommand < Gem::TestCase
@cmd.send :handle_options, %w[-p 65535]
assert_equal 65535, @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
+ @cmd.send :handle_options, %w[-p http]
+ assert_equal 80, @cmd.options[:port]
e = assert_raises OptionParser::InvalidArgument do
@cmd.send :handle_options, %w[-p nonexistent]