aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_commands_sources_command.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-11 12:25:46 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-12 17:24:43 +0900
commitc30594bb0c23b5b23c3d3ca490e3cac34d09c1f9 (patch)
treef926189d35a363d9ad71b8e0359aa7a9662fec9f /test/rubygems/test_gem_commands_sources_command.rb
parent2c0072dec58cb5f99a072a3b2dd341974ec84887 (diff)
downloadruby-c30594bb0c23b5b23c3d3ca490e3cac34d09c1f9.tar.gz
[rubygems/rubygems] Use assert_raise instead of assert_raises
https://github.com/rubygems/rubygems/commit/769e87f011
Diffstat (limited to 'test/rubygems/test_gem_commands_sources_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_sources_command.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/rubygems/test_gem_commands_sources_command.rb b/test/rubygems/test_gem_commands_sources_command.rb
index 59acfb1ed6..70d1b3611c 100644
--- a/test/rubygems/test_gem_commands_sources_command.rb
+++ b/test/rubygems/test_gem_commands_sources_command.rb
@@ -162,7 +162,7 @@ class TestGemCommandsSourcesCommand < Gem::TestCase
use_ui ui do
- assert_raises Gem::MockGemUi::TermError do
+ assert_raise Gem::MockGemUi::TermError do
@cmd.execute
end
end
@@ -188,7 +188,7 @@ class TestGemCommandsSourcesCommand < Gem::TestCase
@cmd.handle_options %w[--add http://beta-gems.example.com]
use_ui @ui do
- assert_raises Gem::MockGemUi::TermError do
+ assert_raise Gem::MockGemUi::TermError do
@cmd.execute
end
end
@@ -299,7 +299,7 @@ source http://gems.example.com/ already present in the cache
ui = Gem::MockGemUi.new "n"
use_ui ui do
- assert_raises Gem::MockGemUi::TermError do
+ assert_raise Gem::MockGemUi::TermError do
@cmd.execute
end
end
@@ -367,7 +367,7 @@ source http://gems.example.com/ already present in the cache
ui = Gem::MockGemUi.new "n"
use_ui ui do
- assert_raises Gem::MockGemUi::TermError do
+ assert_raise Gem::MockGemUi::TermError do
@cmd.execute
end
end
@@ -385,7 +385,7 @@ source http://gems.example.com/ already present in the cache
@cmd.handle_options %w[--add beta-gems.example.com]
use_ui @ui do
- assert_raises Gem::MockGemUi::TermError do
+ assert_raise Gem::MockGemUi::TermError do
@cmd.execute
end
end