From 2819e3b841e662bac8b265ee25dcb114b7923e34 Mon Sep 17 00:00:00 2001 From: ngoto Date: Wed, 28 Oct 2015 15:36:49 +0000 Subject: revert r52312 because the failure does not always occur on Solaris depending on the content of /etc/inet/services, and skipping the assertion by using RUBY_PLATFORM is generally a bad idea. In addition, no ChangeLog is given with the commit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/test_gem_commands_server_command.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'test/rubygems') 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] -- cgit v1.2.3