Skip to content

Commit

Permalink
WIP: Coax Arubu into rendering output
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Nov 15, 2024
1 parent 74971f1 commit 40199b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/aruba/cucumber/testing_frameworks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,12 @@

# RSpec
Then(/^the spec(?:s)? should all pass$/) do
aggregate_failures do
expect(last_command_stopped)
.to have_output an_output_string_matching('examples?, 0 failures')

if last_command_stopped.exit_status != 0
expect(last_command_stopped)
.to have_output an_output_string_matching('examples?, 0 failures')
.to have_output an_output_string_matching(', [1-9][0-9]* failure')
expect(last_command_stopped).to have_exit_status 0
end
end
Expand Down

0 comments on commit 40199b2

Please sign in to comment.