Flowdock
predicate_matchers() public

DEPRECATED - use Spec::Matchers::DSL instead

Defines global predicate matchers. Example:

  config.predicate_matchers[:swim] = :can_swim?

This makes it possible to say:

  person.should swim # passes if person.can_swim? returns true
Show source
Register or log in to add new notes.