class RSpec::Expectations::NegativeExpectationHandler
def self.does_not_match?(matcher, actual, &block)
def self.does_not_match?(matcher, actual, &block) if matcher.respond_to?(:does_not_match?) matcher.does_not_match?(actual, &block) else !matcher.matches?(actual, &block) end end