Sha256: 46e3056f01efd4858e574738b200231bacc6a354ed80935772019d63438aa8f3
Contents?: true
Size: 1.32 KB
Versions: 8
Compression:
Stored size: 1.32 KB
Contents
require "spec_helper" describe "spade installed" 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 "lists installed spades" do spade "install", "rake" wait spade "installed" output = stdout.read output.should include("rake (0.8.7)") output.should_not include("0.8.6") output.should_not include("builder") output.should_not include("bundler") output.should_not include("highline") end it "lists all installed spades from different versions" do spade "install", "rake" wait spade "install", "rake", "-v", "0.8.6" wait spade "installed" output = stdout.read output.should include("rake (0.8.7, 0.8.6)") end it "filters spades when given an argument" do spade "install", "rake" wait spade "install", "builder" wait spade "installed", "builder" output = stdout.read output.should_not include("rake") output.should include("builder (3.0.0)") end it "says it couldn't find any if none found" do spade "installed", "rails", :track_stderr => true stderr.read.strip.should == 'No packages found matching "rails".' exit_status.should_not be_success end end
Version data entries
8 entries across 8 versions & 1 rubygems