Class: RSpec::Matchers::AliasedMatcherWithOperatorSupport Private
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
|
Instance Chain:
|
|
| Inherits: |
RSpec::Matchers::AliasedMatcher
|
| Defined in: | rspec-expectations/lib/rspec/matchers/aliased_matcher.rb |
Overview
Decorator used for matchers that have special implementations of operators like == and ===.
Class Method Summary
Instance Attribute Summary
MatcherDelegator - Inherited
Instance Method Summary
AliasedMatcher - Inherited
| #description | Provides the description of the aliased matcher. |
| #failure_message | Provides the failure_message of the aliased matcher. |
| #failure_message_when_negated | Provides the failure_message_when_negated of the aliased matcher. |
| #method_missing | Forward messages on to the wrapped matcher. |
MatcherDelegator - Inherited
Composable - Included
| #& | Alias for Composable#and. |
| #=== | Delegates to |
| #and | Creates a compound |
| #description_of | Returns the description of the given object in a way that is aware of composed matchers. |
| #or | Creates a compound |
| #values_match? | This provides a generic way to fuzzy-match an expected value against an actual value. |
| #| | Alias for Composable#or. |
| #should_enumerate? | We should enumerate arrays as long as they are not recursive. |
| #surface_descriptions_in | Transforms the given data structure (typically a hash or array) into a new data structure that, when |
| #unreadable_io?, | |
| #with_matchers_cloned | Historically, a single matcher instance was only checked against a single value. |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RSpec::Matchers::AliasedMatcher