Skip to content

Commit

Permalink
Add spec for new help message when no args given
Browse files Browse the repository at this point in the history
  • Loading branch information
petems committed Nov 2, 2015
1 parent 240e580 commit 8b8a18e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/middleware/find_droplet_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
describe ".call" do
it "raises SystemExit with no droplet data" do
expect {described_class.new(app).call(env) }.to raise_error(SystemExit)

expect($stdout.string).to include 'Tugboat attempted to find a droplet with no arguments'
expect($stdout.string).to include 'For more help run: '
expect($stdout.string).to include 'Try running `tugboat '
end
end

Expand Down
4 changes: 4 additions & 0 deletions spec/middleware/find_image_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
describe ".call" do
it "raises SystemExit with no image data" do
expect {described_class.new(app).call(env) }.to raise_error(SystemExit)

expect($stdout.string).to include 'Tugboat attempted to find an image with no arguments'
expect($stdout.string).to include 'For more help run: '
expect($stdout.string).to include 'Try running `tugboat '
end
end

Expand Down

0 comments on commit 8b8a18e

Please sign in to comment.