method
__delegate_operator
1.3.0 -
Show latest stable
- Class:
Spec::Matchers::NegativeOperatorMatcher
__delegate_operator(actual, operator, expected)public
No documentation available.
# File lib/spec/matchers/operator_matcher.rb, line 70
def __delegate_operator(actual, operator, expected)
return false unless actual.__send__(operator, expected)
return fail_with_message("expected not: #{operator} #{expected.inspect},\n got: #{operator.gsub(/./, ' ')} #{actual.inspect}")
end