Skip to content

Commit

Permalink
[debug] exit status
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed May 10, 2020
1 parent 31cacb8 commit 443fa2b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions features/step_definitions/additional_cli_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,13 @@
pending "Action Cable testing is not available"
end
end

Then "the exit status should be 0 or I debug" do
begin
step "the exit status should be 0"
rescue Exception => e
puts all_output
puts e
raise e
end
end
2 changes: 1 addition & 1 deletion features/system_specs/system_specs.feature
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ Feature: System spec
When I run `rspec spec/system/widget_system_spec.rb`
Then the output should contain "1 example, 0 failures"
And the output should not contain "starting Puma"
And the exit status should be 0
And the exit status should be 0 or I debug

0 comments on commit 443fa2b

Please sign in to comment.