Flowdock
method

predicate_matchers

Importance_1
1.1.4 - Show latest stable - 0 notes - Class: Spec::Example::Configuration
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.