diff options
author | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-28 15:36:49 +0000 |
---|---|---|
committer | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-28 15:36:49 +0000 |
commit | 2819e3b841e662bac8b265ee25dcb114b7923e34 (patch) | |
tree | d1b0c5bf48438c75b8f921135a1c55b7f551b4ce /test | |
parent | c8a7e854eb1799f0d6e9ff11577e07108ff4ad37 (diff) | |
download | ruby-2819e3b841e662bac8b265ee25dcb114b7923e34.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_gem_commands_server_command.rb | 7 |
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] |