Method: Spec::Runner::Configuration#predicate_matchers

Defined in:
lib/spec/runner/configuration.rb

#predicate_matchersObject

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
[View source]

137
138
139
# File 'lib/spec/runner/configuration.rb', line 137

def predicate_matchers
  @predicate_matchers ||= Spec::HashWithDeprecationNotice.new("predicate_matchers", "the new Matcher DSL")
end