diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-26 01:10:50 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-26 01:10:50 +0000 |
commit | e93d882d96cc536857e6c181b5f0194f15316b7d (patch) | |
tree | d5810ac15991fc2d4eeb19138e49ba4b892e866d /test/rubygems/test_gem_commands_uninstall_command.rb | |
parent | 4544b3824c8ce74e0a92c58a3167f900904f506b (diff) | |
download | ruby-e93d882d96cc536857e6c181b5f0194f15316b7d.tar.gz |
* lib/rubygems: Update to RubyGems 1.8.10. Fixes security issue in
creating ruby-format gemspecs. Fixes Gem.dir not being at the front
of Gem.path to fix uninstall and cleanup commands. Fixes gem
uninstall stopping on the first missing gem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_commands_uninstall_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_uninstall_command.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_uninstall_command.rb b/test/rubygems/test_gem_commands_uninstall_command.rb index d76178e86d..1db6146889 100644 --- a/test/rubygems/test_gem_commands_uninstall_command.rb +++ b/test/rubygems/test_gem_commands_uninstall_command.rb @@ -45,6 +45,19 @@ class TestGemCommandsUninstallCommand < Gem::InstallerTestCase assert_includes output, "Successfully uninstalled #{@other.full_name}" end + def test_execute_mulitple_nonexistent + @cmd.options[:args] = %w[x y] + + use_ui @ui do + @cmd.execute + end + + output = @ui.output.split "\n" + + assert_includes output, 'INFO: gem "x" is not installed' + assert_includes output, 'INFO: gem "y" is not installed' + end + def test_execute_removes_executable ui = Gem::MockGemUi.new util_setup_gem ui |