From ed5d5c5829ccd91261b27438e2aa146f7aec755e Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 8 Dec 2009 07:19:09 +0000 Subject: * lib/rubygems: update to 1.3.5. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/test_gem_commands_uninstall_command.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'test/rubygems/test_gem_commands_uninstall_command.rb') diff --git a/test/rubygems/test_gem_commands_uninstall_command.rb b/test/rubygems/test_gem_commands_uninstall_command.rb index a6ac23812b..092a9072c0 100644 --- a/test/rubygems/test_gem_commands_uninstall_command.rb +++ b/test/rubygems/test_gem_commands_uninstall_command.rb @@ -57,5 +57,25 @@ class TestGemCommandsUninstallCommand < GemInstallerTestCase assert_empty output, "UI output should be empty after an uninstall error" end + def test_execute_prerelease + @spec = quick_gem "pre", "2.b" + @gem = File.join @tempdir, "#{@spec.full_name}.gem" + FileUtils.touch @gem + + util_setup_gem + + use_ui @ui do + @installer.install + end + + @cmd.options[:args] = ["pre"] + + use_ui @ui do + @cmd.execute + end + + output = @ui.output + assert_match(/Successfully uninstalled/, output) + end end -- cgit v1.2.3