Method: Minitest::Assertions#refute_predicate

Defined in:
lib/minitest/assertions.rb

#refute_predicate(o1, op, msg = nil) ⇒ Object

For testing with predicates.

refute_predicate str, :empty?

This is really meant for specs and is front-ended by refute_operator:

str.wont_be :empty?
[View source]

804
805
806
807
# File 'lib/minitest/assertions.rb', line 804

def refute_predicate o1, op, msg = nil
  msg = message(msg) { "Expected #{mu_pp(o1)} to not be #{op}" }
  refute o1.__send__(op), msg
end