Module: SpecCombos::CollectionMatcher

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

Overview

Mixin for the :and and :any collection matchers

Instance Method Summary collapse

Instance Method Details

#descriptionObject



10
11
12
# File 'lib/spec_combos/collection_matcher.rb', line 10

def description
  "#{short_description} #{new_matcher.description}"
end

#initialize(&item_matcher_proc) ⇒ Object



6
7
8
# File 'lib/spec_combos/collection_matcher.rb', line 6

def initialize(&item_matcher_proc)
  @item_matcher_proc = item_matcher_proc
end