method
assert_predicate
v2_1_10 -
Show latest stable
- Class:
MiniTest::Assertions
assert_predicate(o1, op, msg = nil)public
For testing with predicates.
assert_predicate str, :empty?
This is really meant for specs and is front-ended by assert_operator:
str.must_be :empty?