Sha256: 9ae8625bc2b97ae59b923e7fecb3b7fe3f5b1d82760243a125c1135572952c43
Contents?: true
Size: 582 Bytes
Versions: 2
Compression:
Stored size: 582 Bytes
Contents
module SpecCombos # Matcher to verify that all items match something else class AllMatcher include MatcherCombiner include MatcherCombiner::And include CollectionMatcher private def short_description "all" end def failure_summary_for_should "expected #{actual_items} to #{description}, but the following were not:" end def failure_summary_for_should_not "expected #{actual_items} not to #{description}, but all were:" end end end def all_(&item_matcher_proc) SpecCombos::AllMatcher.new(&item_matcher_proc) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spec_combos-0.3.0 | lib/spec_combos/all_matcher.rb |
spec_combos-0.2.0 | lib/spec_combos/all_matcher.rb |