Class Spec::Expectations::ExpectationMatcherHandler
In: lib/spec/expectations/handler.rb
Parent: Object

Methods

Included Modules

MatcherHandlerHelper

Public Class methods

[Source]

    # File lib/spec/expectations/handler.rb, line 13
13:         def handle_matcher(actual, matcher, &block)
14:           match = matcher.matches?(actual, &block)
15:           ::Spec::Matchers.generated_description = "should #{describe(matcher)}"
16:           Spec::Expectations.fail_with(matcher.failure_message) unless match
17:         end

[Validate]