Sha256: 687e5b0fb1f526f6b4fa09e5aa6b354d1c1e8e27e92d7bfba3de3f719bd9e758
Contents?: true
Size: 615 Bytes
Versions: 2
Compression:
Stored size: 615 Bytes
Contents
module SpecCombos # Matcher to verify that all items match something else class AnyMatcher include MatcherCombiner include MatcherCombiner::Or include CollectionMatcher private def short_description "have any that" end def failure_summary_for_should "expected #{actual_items} to #{description}, but none were:" end def failure_summary_for_should_not "expected #{actual_items} not to #{description}, but the following were:" end end end def any_(&item_matcher_proc) SpecCombos::AnyMatcher.new(&item_matcher_proc) end alias :have_any_that :any_
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spec_combos-0.3.0 | lib/spec_combos/any_matcher.rb |
spec_combos-0.2.0 | lib/spec_combos/any_matcher.rb |