# File lib/rspec/expectations/expectation_target.rb, line 45 def not_to(matcher=nil, message=nil, &block) prevent_operator_matchers(:not_to, matcher) RSpec::Expectations::NegativeExpectationHandler.handle_matcher(@target, matcher, message, &block) end