Flowdock
predicate_matchers() public

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.