Flowdock
method

__delegate_method_missing_to_target

Importance_0
1.1.4 - Show latest stable - 0 notes - Class: Spec::Matchers::PositiveOperatorMatcher
__delegate_method_missing_to_target(operator, expected) public

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File lib/spec/matchers/operator_matcher.rb, line 53
      def __delegate_method_missing_to_target(operator, expected)
        ::Spec::Matchers.generated_description = "should #{operator} #{expected.inspect}"
        return if @target.send(operator, expected)
        return fail_with_message("expected: #{expected.inspect},\n     got: #{@target.inspect} (using #{operator})") if ['==','===', '=~'].include?(operator)
        return fail_with_message("expected: #{operator} #{expected.inspect},\n     got: #{operator.gsub(/./, ' ')} #{@target.inspect}")
      end
Register or log in to add new notes.