From 3180ad2ea6589d4034b4856d04be64a42d14b2f5 Mon Sep 17 00:00:00 2001 From: Gabe Berke-Williams Date: Fri, 21 Oct 2011 10:35:42 -0400 Subject: [PATCH] Match the actual output of the heroku stack command. --- spec/support/heroku.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/support/heroku.rb b/spec/support/heroku.rb index 8ccdf80..9ccf1e3 100644 --- a/spec/support/heroku.rb +++ b/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) @@ -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)