summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_specification_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_specification_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_specification_command.rb6
1 files changed, 3 insertions, 3 deletions
@@ -51,7 +51,7 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
@cmd.options[:all] = true
@cmd.options[:version] = "1"
- assert_raises Gem::MockGemUi::TermError do
use_ui @ui do
@cmd.execute
end
@@ -64,7 +64,7 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
def test_execute_bad_name
@cmd.options[:args] = %w[foo]
- assert_raises Gem::MockGemUi::TermError do
use_ui @ui do
@cmd.execute
end
@@ -78,7 +78,7 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
@cmd.options[:args] = %w[foo]
@cmd.options[:version] = "1.3.2"
- assert_raises Gem::MockGemUi::TermError do
use_ui @ui do
@cmd.execute
end