Class: RSpec::Matchers::BuiltIn::NegativeOperatorMatcher Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
OperatorMatcher
|
|
Instance Chain:
self,
OperatorMatcher
|
|
Inherits: |
RSpec::Matchers::BuiltIn::OperatorMatcher
|
Defined in: | rspec-expectations/lib/rspec/matchers/built_in/operators.rb |
Overview
Handles operator matcher for should_not
.
Class Method Summary
OperatorMatcher
- Inherited
Instance Method Summary
- #__delegate_operator(actual, operator, expected) Internal use only
OperatorMatcher
- Inherited
Instance Method Details
#__delegate_operator(actual, operator, expected)
[ GitHub ]# File 'rspec-expectations/lib/rspec/matchers/built_in/operators.rb', line 117
def __delegate_operator(actual, operator, expected) return false unless actual.__send__(operator, expected) expected_formatted = RSpec::Support::ObjectFormatter.format(expected) actual_formatted = RSpec::Support::ObjectFormatter.format(actual) ("expected not: #{operator} #{expected_formatted}\n got: #{operator.gsub(/./, ' ')} #{actual_formatted}") end