Module: SpecCombos::MatcherCombiner
- Included in:
- AllMatcher, AndMatcher, AnyMatcher
- Defined in:
- lib/spec_combos/matcher_combiner.rb
Defined Under Namespace
Instance Method Summary collapse
- #failure_message_for_should ⇒ Object
- #failure_message_for_should_not ⇒ Object
- #matches?(actual) ⇒ Boolean
Instance Method Details
#failure_message_for_should ⇒ Object
23 24 25 |
# File 'lib/spec_combos/matcher_combiner.rb', line 23 def (MATCHING, failure_summary_for_should) end |
#failure_message_for_should_not ⇒ Object
27 28 29 |
# File 'lib/spec_combos/matcher_combiner.rb', line 27 def (NOT_MATCHING, failure_summary_for_should_not) end |
#matches?(actual) ⇒ Boolean
17 18 19 20 21 |
# File 'lib/spec_combos/matcher_combiner.rb', line 17 def matches?(actual) @actual = actual @match_details = perform_matches(actual) match_result end |