Method: Spec::Runner::Configuration#predicate_matchers
- Defined in:
- lib/spec/runner/configuration.rb
permalink #predicate_matchers ⇒ Object
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
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 |