aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_commands_uninstall_command.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-23 22:58:06 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-23 22:58:06 +0000
commitcede48fd403ddb0631fafc49392350bb889c38ab (patch)
tree8f081045945e355b3f5992eb87b20e02d9eefb35 /test/rubygems/test_gem_commands_uninstall_command.rb
parentd1919daa4282b29d22240c7fee977afbcbc7ea58 (diff)
downloadruby-cede48fd403ddb0631fafc49392350bb889c38ab.tar.gz
* lib/rubygems: Update to RubyGems 1.8.9. Fixes uninstalling multiple
gems and gem cleanup. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33040 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.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_uninstall_command.rb b/test/rubygems/test_gem_commands_uninstall_command.rb
index 132c370f11..d76178e86d 100644
--- a/test/rubygems/test_gem_commands_uninstall_command.rb
+++ b/test/rubygems/test_gem_commands_uninstall_command.rb
@@ -17,6 +17,34 @@ class TestGemCommandsUninstallCommand < Gem::InstallerTestCase
@executable = File.join(@gemhome, 'bin', 'executable')
end
+ def test_execute_mulitple
+ @other = quick_gem 'c'
+ util_make_exec @other
+ util_build_gem @other
+
+ @other_installer = util_installer @other, @gemhome
+
+ ui = Gem::MockGemUi.new
+ util_setup_gem ui
+
+ build_rake_in do
+ use_ui ui do
+ @other_installer.install
+ end
+ end
+
+ @cmd.options[:args] = [@spec.name, @other.name]
+
+ use_ui @ui do
+ @cmd.execute
+ end
+
+ output = @ui.output.split "\n"
+
+ assert_includes output, "Successfully uninstalled #{@spec.full_name}"
+ assert_includes output, "Successfully uninstalled #{@other.full_name}"
+ end
+
def test_execute_removes_executable
ui = Gem::MockGemUi.new
util_setup_gem ui
@@ -91,5 +119,6 @@ class TestGemCommandsUninstallCommand < Gem::InstallerTestCase
output = @ui.output
assert_match(/Successfully uninstalled/, output)
end
+
end