mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 11:03:58 +02:00
* 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:
parent
322937ff00
commit
f5c8aecebc
12 changed files with 208 additions and 76 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue