class RSpec::Matchers::BuiltIn::NegativeOperatorMatcher

Handles operator matcher for ‘should_not`.
@private

def __delegate_operator(actual, operator, expected)

def __delegate_operator(actual, operator, expected)
  return false unless actual.__send__(operator, expected)
  expected_formatted = RSpec::Support::ObjectFormatter.format(expected)
  actual_formatted   = RSpec::Support::ObjectFormatter.format(actual)
  fail_with_message("expected not: #{operator} #{expected_formatted}\n         got: #{operator.gsub(/./, ' ')} #{actual_formatted}")
end