class Minitest::Test
Hooks Minitest::Test.run to enforce prove_it! for all tests.
TODO: to be moved to minitest/hell?
Public Class Methods
Source
# File lib/minitest/proveit.rb, line 11 def self.prove_it @@prove_it ||= false end
Getter for prove_it class variable
Source
# File lib/minitest/proveit.rb, line 27 def self.prove_it! @@prove_it = true unless defined? @@prove_it end
Call this at the top of your tests when you want to force all tests to prove success (via at least one assertion) rather than rely on the absence of failure.
Source
# File lib/minitest/proveit.rb, line 18 def self.prove_it= o @@prove_it = o end
Setter for prove_it class variable. true/false