Module: SpecCombos::MatcherCombiner

Included in:
AllMatcher, AndMatcher, AnyMatcher
Defined in:
lib/spec_combos/matcher_combiner.rb

Defined Under Namespace

Modules: And, Or

Instance Method Summary collapse

Instance Method Details

#failure_message_for_shouldObject



23
24
25
# File 'lib/spec_combos/matcher_combiner.rb', line 23

def failure_message_for_should
  failure_message(MATCHING, failure_summary_for_should)
end

#failure_message_for_should_notObject



27
28
29
# File 'lib/spec_combos/matcher_combiner.rb', line 27

def failure_message_for_should_not
  failure_message(NOT_MATCHING, failure_summary_for_should_not)
end

#matches?(actual) ⇒ Boolean

Returns:

  • (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