class RSpec::Matchers::BuiltIn::NegativeOperatorMatcher
@private Handles operator matcher for ‘should_not`.
Public Instance Methods
# File rspec-expectations/lib/rspec/matchers/built_in/operators.rb, line 117 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