Sha256: 77a70b09dbd950b890273f9a202d9ccc5e267d0e65324be6b84cd41207239d5f
Contents?: true
Size: 1.71 KB
Versions: 8
Compression:
Stored size: 1.71 KB
Contents
require "spec_helper" describe "spade uninstall" do before do cd(home) env["HOME"] = home.to_s env["RUBYGEMS_HOST"] = "http://localhost:9292" env["GEM_HOME"] = spade_dir.to_s env["GEM_PATH"] = spade_dir.to_s start_fake(FakeGemServer.new) end it "uninstalls a gem" do spade "install", "rake" wait spade "uninstall", "rake" stdout.read.should include("Successfully uninstalled rake-0.8.7") "rake-0.8.7".should_not be_fetched "rake-0.8.7".should_not be_unpacked end it "uninstalls multiple packages" do spade "install", "rake", "highline" wait spade "uninstall", "rake", "highline" output = stdout.read output.should include("Successfully uninstalled rake-0.8.7") output.should include("Successfully uninstalled highline-1.6.1") "rake-0.8.7".should_not be_fetched "rake-0.8.7".should_not be_unpacked "highline-1.6.1".should_not be_fetched "highline-1.6.1".should_not be_unpacked end it "requires at least one package to uninstall" do spade "uninstall", :track_stderr => true stderr.read.should include("called incorrectly") end it "fails when a package is not found" do spade "uninstall", "webscale", :track_stderr => true stderr.read.should include(%{No packages installed named "webscale"}) end it "will attempt to uninstall packages even when nonexisting one is given" do spade "install", "rake", "highline" wait spade "uninstall", "rake", "webscale", :track_stderr => true stdout.read.should include("Successfully uninstalled rake-0.8.7") "rake-0.8.7".should_not be_fetched "rake-0.8.7".should_not be_unpacked stderr.read.should include(%{No packages installed named "webscale"}) end end
Version data entries
8 entries across 8 versions & 1 rubygems