Skip to content

Commit

Permalink
verify: Delay raise until exit
Browse files Browse the repository at this point in the history
Because I feel like seeing everything
  • Loading branch information
petertseng committed Dec 10, 2021
1 parent 00cc0c7 commit a362a95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion verify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,7 @@ def verify(*args, **kwargs, &block)

puts "#{passed} passed, #{failed} failed"

raise "#{failed} failed" if failed > 0
if failed > 0
at_exit { raise "#{failed} failed in a test of #{property}" }
end
end

0 comments on commit a362a95

Please sign in to comment.