method

assert_predicate

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?