module RSpec::Expectations::ExpectationTarget::InstanceMethods
def to(matcher=nil, message=nil, &block)
- See: RSpec::Matchers -
Returns:
-
(Boolean)
- true if the expectation succeeds (else raises)
Parameters:
-
message
(String, Proc
) -- optional message to display when the expectation fails -
(
Matcher
) --
def to(matcher=nil, message=nil, &block) prevent_operator_matchers(:to) unless matcher RSpec::Expectations::PositiveExpectationHandler.handle_matcher(target, matcher, message, &block) end