Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Match the actual output of the heroku stack command.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Oct 21, 2011
1 parent 61d3ee8 commit 3180ad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/support/heroku.rb
@@ -1,7 +1,7 @@
shared_context "when on Cedar" do
let(:command_line) { mock("Kumade::CommandLine") }
let(:stack_command) { "bundle exec heroku stack --remote staging" }
let(:heroku_output) { ["aspen-mri-1.8.6", "bamboo-mri-1.9.2", "bamboo-ree-1.8.7", "* cedar (beta)"].map { |s| " #{s}"}.join("\n") }
let(:heroku_output) { ["aspen-mri-1.8.6", "bamboo-mri-1.9.2", "bamboo-ree-1.8.7", "* cedar (beta)"].join("\n") }

before do
Kumade::CommandLine.expects(:new).with(stack_command).returns(command_line)
Expand All @@ -13,7 +13,7 @@
shared_context "when not on Cedar" do
let(:command_line) { mock("Kumade::CommandLine") }
let(:stack_command) { "bundle exec heroku stack --remote staging" }
let(:heroku_output) { ["aspen-mri-1.8.6", "* bamboo-mri-1.9.2", "bamboo-ree-1.8.7", "cedar (beta)"].map {|s| " #{s}" }.join("\n") }
let(:heroku_output) { ["aspen-mri-1.8.6", "* bamboo-mri-1.9.2", "bamboo-ree-1.8.7", "cedar (beta)"].join("\n") }

before do
Kumade::CommandLine.expects(:new).with(stack_command).returns(command_line)
Expand Down

0 comments on commit 3180ad2

Please sign in to comment.