* backport r33074 from trunk

* 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/branches/ruby_1_9_3@33075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2011-08-26 01:12:57 +00:00
parent 322937ff00
commit f5c8aecebc
12 changed files with 208 additions and 76 deletions

View file

@ -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