Class: Spec::Matchers::NegativeOperatorMatcher
- Inherits:
-
BaseOperatorMatcher
- Object
- BaseOperatorMatcher
- Spec::Matchers::NegativeOperatorMatcher
- Defined in:
- lib/spec/matchers/operator_matcher.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from BaseOperatorMatcher
#<, #<=, #==, #===, #=~, #>, #>=, #fail_with_message, #initialize
Constructor Details
This class inherits a constructor from Spec::Matchers::BaseOperatorMatcher
Instance Method Details
#__delegate_method_missing_to_target(operator, expected) ⇒ Object
63 64 65 66 67 |
# File 'lib/spec/matchers/operator_matcher.rb', line 63 def __delegate_method_missing_to_target(operator, expected) ::Spec::Matchers.generated_description = "should not #{operator} #{expected.inspect}" return unless @target.send(operator, expected) return ("expected not: #{operator} #{expected.inspect},\n got: #{operator.gsub(/./, ' ')} #{@target.inspect}") end |