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 9, 2021
1 parent f5026ba commit ea26f7f
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 ea26f7f

Please sign in to comment.