summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem.rb')
-rw-r--r--test/rubygems/test_gem.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb
index c86ccc2098..b32a76807b 100644
--- a/test/rubygems/test_gem.rb
+++ b/test/rubygems/test_gem.rb
@@ -664,7 +664,7 @@ class TestGem < Gem::TestCase
gemdir = File.join @tempdir, "a/b/c/gemdir"
begin
FileUtils.rm_rf File.join(@tempdir, "a")
- rescue
+ rescue StandardError
nil
end
refute File.exist?(File.join(@tempdir, "a")),
@@ -681,7 +681,7 @@ class TestGem < Gem::TestCase
gemdir = File.join @tempdir, "egd"
begin
FileUtils.rm_r gemdir
- rescue
+ rescue StandardError
nil
end
refute File.exist?(gemdir), "manually remove #{gemdir}, tests are broken"
@@ -702,7 +702,7 @@ class TestGem < Gem::TestCase
begin
FileUtils.rm_r parent
- rescue
+ rescue StandardError
nil
end
refute File.exist?(parent), "manually remove #{parent}, tests are broken"
@@ -1510,7 +1510,7 @@ class TestGem < Gem::TestCase
with_plugin("load") { Gem.load_env_plugins }
begin
assert_equal :loaded, TEST_PLUGIN_LOAD
- rescue
+ rescue StandardError
nil
end
@@ -1520,7 +1520,7 @@ class TestGem < Gem::TestCase
with_plugin("standarderror") { Gem.load_env_plugins }
begin
assert_equal :loaded, TEST_PLUGIN_STANDARDERROR
- rescue
+ rescue StandardError
nil
end
@@ -1530,7 +1530,7 @@ class TestGem < Gem::TestCase
with_plugin("exception") { Gem.load_env_plugins }
begin
assert_equal :loaded, TEST_PLUGIN_EXCEPTION
- rescue
+ rescue StandardError
nil
end
end