@private Handles operator matcher for `should`.
# File lib/rspec/matchers/built_in/operators.rb, line 98 def __delegate_operator(actual, operator, expected) if actual.__send__(operator, expected) true elsif ['==', '===', '=~'].include?(operator) fail_with_message("expected: #{expected.inspect}\n got: #{actual.inspect} (using #{operator})") else fail_with_message("expected: #{operator} #{expected.inspect}\n got: #{operator.gsub(/./, ' ')} #{actual.inspect}") end end
Generated with the Darkfish Rdoc Generator 2.