Permalink
Browse files

Add debugging code to feature spec

Change-Id: I1ce353d9ca7fde9c32e5126c714683c7ce76f9fe
  • Loading branch information...
1 parent 8073671 commit 5caecfeafac9db2150c0b1c6ef3390959f6e4ace Max Brunsfeld and Tim Labeeuw committed Jan 17, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 spec/support/feature_helpers.rb
@@ -1,12 +1,16 @@
def vmc_ok(argv)
Mothership.new.exit_status 0
capture_output { VMC::CLI.start(argv + ["--no-script"]) }
+ output = stdout.string.strip_progress_dots
+ puts output if status != 0
expect(status).to eq 0
- yield stdout.string.strip_progress_dots if block_given?
+ yield output if block_given?
end
def vmc_fail(argv)
capture_output { VMC::CLI.start(argv + ["--no-script"]) }
+ output = stdout.string.strip_progress_dots
+ puts output if status == 0
expect(status).to eq 1
- yield stdout.string.strip_progress_dots if block_given?
+ yield output if block_given?
end

0 comments on commit 5caecfe

Please sign in to comment.