Skip to content

Commit

Permalink
Return super early if not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmarshall committed Sep 24, 2024
1 parent f171262 commit 9ed72e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/minitest/verify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ def verify_fails_without(&block)
end

def run
return super unless Verify.enabled

super

return Result.from(self) unless Verify.enabled && failures.none?
return Result.from(self) if failures.any?

begin
while (@current_caller = callers.shift)
Expand Down

0 comments on commit 9ed72e3

Please sign in to comment.