class Minitest::Test
Hooks Minitest::Test.run to enforce ::prove_it! for all tests.
TODO: to be moved to minitest/hell?
Public Class Methods
prove_it()
click to toggle source
Getter for ::prove_it class variable
# File lib/minitest/proveit.rb, line 11 def self.prove_it @@prove_it ||= false end
prove_it!()
click to toggle source
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.
# File lib/minitest/proveit.rb, line 27 def self.prove_it! @@prove_it = true unless defined? @@prove_it end
prove_it=(o)
click to toggle source
Setter for ::prove_it class variable. true/false
# File lib/minitest/proveit.rb, line 18 def self.prove_it= o @@prove_it = o end