Class: Spec::Matchers::NegativeOperatorMatcher
- Inherits:
-
BaseOperatorMatcher
- Object
- BaseOperatorMatcher
- Spec::Matchers::NegativeOperatorMatcher
- Defined in:
- lib/gems/rspec-1.1.11/lib/spec/matchers/operator_matcher.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from BaseOperatorMatcher
Instance Method Summary collapse
Methods inherited from BaseOperatorMatcher
#<, #<=, #==, #===, #=~, #>, #>=, #description, #fail_with_message, #initialize
Constructor Details
This class inherits a constructor from Spec::Matchers::BaseOperatorMatcher
Instance Method Details
#__delegate_method_missing_to_given(operator, expected) ⇒ Object
69 70 71 72 73 74 |
# File 'lib/gems/rspec-1.1.11/lib/spec/matchers/operator_matcher.rb', line 69 def __delegate_method_missing_to_given(operator, expected) @operator = operator ::Spec::Matchers.last_matcher = self return true unless @given.__send__(operator, expected) return ("expected not: #{operator} #{expected.inspect},\n got: #{operator.gsub(/./, ' ')} #{@given.inspect}") end |