Method: MiniTest::Assertions#refute
- Defined in:
- lib/minitest/unit.rb
#refute(test, msg = nil) ⇒ Object
Fails if test is a true value
573 574 575 576 |
# File 'lib/minitest/unit.rb', line 573 def refute test, msg = nil msg ||= "Failed refutation, no message given" not assert(! test, msg) end |