Permalink
Browse files

Fix specs to account for other ways to start the spec

  • Loading branch information...
1 parent 1b3209e commit 1c213898b578efe2edd9d432aea33555769c597e @iain committed Apr 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/camp_spec.rb
View
4 spec/camp_spec.rb
@@ -28,14 +28,14 @@
end
it "displays a failure message" do
- subject.should_receive(:speak).with(":warning: iain failed to deploy to the production stage of basecamp, via `cap`: woops (RuntimeError)")
+ subject.should_receive(:speak).with(":warning: iain failed to deploy to the production stage of basecamp, via `cap #{ARGV.join(' ')}`: woops (RuntimeError)")
context = stub(:stage => "production", :application => "basecamp")
exception = RuntimeError.new("woops")
subject.failure(context, exception)
end
it "displays success message" do
- subject.should_receive(:speak).with("iain succesfully deployed to the production stage of basecamp, via `cap`")
+ subject.should_receive(:speak).with("iain succesfully deployed to the production stage of basecamp, via `cap #{ARGV.join(' ')}`")
context = stub(:stage => "production", :application => "basecamp")
subject.success(context)
end

0 comments on commit 1c21389

Please sign in to comment.