summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_exec_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_commands_exec_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_exec_command.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_commands_exec_command.rb b/test/rubygems/test_gem_commands_exec_command.rb
index c73b0eae6c..532f8acef0 100644
--- a/test/rubygems/test_gem_commands_exec_command.rb
+++ b/test/rubygems/test_gem_commands_exec_command.rb
@@ -730,7 +730,11 @@ class TestGemCommandsExecCommand < Gem::TestCase
assert_includes @ui.output, "a (2)\n"
assert_includes @ui.output, "b (2)\n"
- invoke "gem", "uninstall", "--verbose", "-x", "a" rescue nil
+ begin
+ invoke "gem", "uninstall", "--verbose", "-x", "a"
+ rescue
+ nil
+ end
refute_includes @ui.output, "running gem exec with"
assert_includes @ui.output, "Successfully uninstalled a-2\n"