summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_uninstall_command.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-08 07:19:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-08 07:19:09 +0000
commited5d5c5829ccd91261b27438e2aa146f7aec755e (patch)
treedc11e68e4128f5d250d88f1ef70c8bd68ef1e166 /test/rubygems/test_gem_commands_uninstall_command.rb
parent6c0f2b097edabefd7ab8dfa1c36128de8febbe99 (diff)
* lib/rubygems: update to 1.3.5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26049 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.rb20
1 files changed, 20 insertions, 0 deletions
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