summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_server_command.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2021-05-11 12:25:46 +0900
committerHiroshi SHIBATA <[email protected]>2021-05-12 17:24:43 +0900
commitc30594bb0c23b5b23c3d3ca490e3cac34d09c1f9 ()
treef926189d35a363d9ad71b8e0359aa7a9662fec9f /test/rubygems/test_gem_commands_server_command.rb
parent2c0072dec58cb5f99a072a3b2dd341974ec84887 (diff)
[rubygems/rubygems] Use assert_raise instead of assert_raises
https://.com/rubygems/rubygems/commit/769e87f011
Notes: Merged: https://.com/ruby/ruby/pull/4491
-rw-r--r--test/rubygems/test_gem_commands_server_command.rb4
1 files changed, 2 insertions, 2 deletions
@@ -44,14 +44,14 @@ class TestGemCommandsServerCommand < Gem::TestCase
# for container environment on Actions
end
- e = assert_raises OptionParser::InvalidArgument do
@cmd.send :handle_options, %w[-p nonexistent]
end
assert_equal 'invalid argument: -p nonexistent: no such named service',
e.message
- e = assert_raises OptionParser::InvalidArgument do
@cmd.send :handle_options, %w[-p 65536]
end