summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_install_update_options.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_install_update_options.rb
parent2c0072dec58cb5f99a072a3b2dd341974ec84887 (diff)
[rubygems/rubygems] Use assert_raise instead of assert_raises
https://github.com/rubygems/rubygems/commit/769e87f011
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4491
Diffstat (limited to 'test/rubygems/test_gem_install_update_options.rb')
-rw-r--r--test/rubygems/test_gem_install_update_options.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rubygems/test_gem_install_update_options.rb b/test/rubygems/test_gem_install_update_options.rb
index aea03ffdd8..6cbf573e0b 100644
--- a/test/rubygems/test_gem_install_update_options.rb
+++ b/test/rubygems/test_gem_install_update_options.rb
@@ -104,7 +104,7 @@ class TestGemInstallUpdateOptions < Gem::InstallerTestCase
@cmd.add_install_update_options
- e = assert_raises OptionParser::InvalidArgument do
+ e = assert_raise OptionParser::InvalidArgument do
@cmd.handle_options %w[-P UnknownSecurity]
end
assert_includes e.message, "UnknownSecurity"
@@ -150,7 +150,7 @@ class TestGemInstallUpdateOptions < Gem::InstallerTestCase
Gem.use_paths @gemhome, @userhome
- assert_raises(Gem::FilePermissionError) do
+ assert_raise(Gem::FilePermissionError) do
Gem::Installer.at(@gem, @cmd.options).install
end
end
@@ -169,7 +169,7 @@ class TestGemInstallUpdateOptions < Gem::InstallerTestCase
def test_vendor_missing
vendordir(nil) do
- e = assert_raises OptionParser::InvalidOption do
+ e = assert_raise OptionParser::InvalidOption do
@cmd.handle_options %w[--vendor]
end