Flowdock
method

predicate_matchers

Importance_1
RSpec latest stable (1.3.1) - 0 notes - Class: Spec::Example::Configuration

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (1.1.4) is shown here.

These similar methods exist in 1.3.1:

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.