aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_uninstaller.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_uninstaller.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_uninstaller.rb')
-rw-r--r--test/rubygems/test_gem_uninstaller.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/rubygems/test_gem_uninstaller.rb b/test/rubygems/test_gem_uninstaller.rb
index 212a0e426b..657addf6d9 100644
--- a/test/rubygems/test_gem_uninstaller.rb
+++ b/test/rubygems/test_gem_uninstaller.rb
@@ -138,7 +138,7 @@ class TestGemUninstaller < Gem::InstallerTestCase
Dir.mkdir "#{@gemhome}2"
uninstaller = Gem::Uninstaller.new nil, :install_dir => "#{@gemhome}2"
- e = assert_raises Gem::GemNotInHomeException do
+ e = assert_raise Gem::GemNotInHomeException do
use_ui ui do
uninstaller.remove @spec
end
@@ -329,7 +329,7 @@ create_makefile '#{@spec.name}'
def test_uninstall_nonexistent
uninstaller = Gem::Uninstaller.new 'bogus', :executables => true
- e = assert_raises Gem::InstallError do
+ e = assert_raise Gem::InstallError do
uninstaller.uninstall
end
@@ -351,7 +351,7 @@ create_makefile '#{@spec.name}'
ui = Gem::MockGemUi.new "n\n"
- assert_raises Gem::DependencyRemovalException do
+ assert_raise Gem::DependencyRemovalException do
use_ui ui do
uninstaller.uninstall
end
@@ -392,7 +392,7 @@ create_makefile '#{@spec.name}'
uninstaller = Gem::Uninstaller.new @spec.name, :executables => true
- e = assert_raises Gem::InstallError do
+ e = assert_raise Gem::InstallError do
uninstaller.uninstall
end
@@ -546,7 +546,7 @@ create_makefile '#{@spec.name}'
un = Gem::Uninstaller.new('q', :abort_on_dependent => true)
ui = Gem::MockGemUi.new("y\n")
- assert_raises Gem::DependencyRemovalException do
+ assert_raise Gem::DependencyRemovalException do
use_ui ui do
un.uninstall
end
@@ -619,7 +619,7 @@ create_makefile '#{@spec.name}'
end
FileUtils.stub :rm_r, stub_rm_r do
- assert_raises Gem::UninstallError do
+ assert_raise Gem::UninstallError do
uninstaller.uninstall
end
end