Class Index [+]

Quicksearch

RSpec::Matchers::BuiltIn::PositiveOperatorMatcher

Public Instance Methods

__delegate_operator(actual, operator, expected) click to toggle source
    # File lib/rspec/matchers/operator_matcher.rb, line 65
65:         def __delegate_operator(actual, operator, expected)
66:           if actual.__send__(operator, expected)
67:             true
68:           elsif ['==','===', '=~'].include?(operator)
69:             fail_with_message("expected: #{expected.inspect}\n     got: #{actual.inspect} (using #{operator})") 
70:           else
71:             fail_with_message("expected: #{operator} #{expected.inspect}\n     got: #{operator.gsub(/./, ' ')} #{actual.inspect}")
72:           end
73:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.