module RSpec::Expectations::ExpectationTarget::InstanceMethods

def not_to(matcher=nil, message=nil, &block)

Other tags:
    See: RSpec::Matchers -

Returns:
  • (Boolean) - false if the negative expectation succeeds (else raises)

Parameters:
  • message (String, Proc) -- optional message to display when the expectation fails
  • (Matcher) --
def not_to(matcher=nil, message=nil, &block)
  prevent_operator_matchers(:not_to) unless matcher
  RSpec::Expectations::NegativeExpectationHandler.handle_matcher(target, matcher, message, &block)
end