Sha256: 5cecc4d71368e74277b00ba061abe33386e46ce1c7770e2be4ab357c85325071

Contents?: true

Size: 375 Bytes

Versions: 15

Compression:

Stored size: 375 Bytes

Contents

module WildcardMatchers
  module Helpers
    define_wildcard_helper(:for_any)

    class ForAny < ::WildcardMatchers::WildcardMatcher
      protected
      def wildcard_match(actual)
        unless actual.any? {|e| self.class.superclass.check_errors(e, expectation) == [] }
          errors.push("expect #{actual} has #{expectation}")
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wildcard_matchers-0.9.2 lib/wildcard_matchers/helpers/for_any.rb
wildcard_matchers-0.9.1 lib/wildcard_matchers/helpers/for_any.rb
wildcard_matchers-0.9.0 lib/wildcard_matchers/helpers/for_any.rb
wildcard_matchers-0.4.0 lib/wildcard_matchers/helpers/for_any.rb
wildcard_matchers-0.3.1 lib/wildcard_matchers/helpers/for_any.rb
wildcard_matchers-0.3.0 lib/wildcard_matchers/helpers/for_any.rb
wildcard_matchers-0.2.1 lib/wildcard_matchers/helpers/for_any.rb
wildcard_matchers-0.2.0 lib/wildcard_matchers/helpers/for_any.rb
wildcard_matchers-0.1.8 lib/wildcard_matchers/helpers/for_any.rb
wildcard_matchers-0.1.7 lib/wildcard_matchers/helpers/for_any.rb
wildcard_matchers-0.1.6 lib/wildcard_matchers/helpers/for_any.rb
wildcard_matchers-0.1.5 lib/wildcard_matchers/helpers/for_any.rb
wildcard_matchers-0.1.4 lib/wildcard_matchers/helpers/for_any.rb
wildcard_matchers-0.1.3 lib/wildcard_matchers/helpers/for_any.rb
wildcard_matchers-0.1.2 lib/wildcard_matchers/helpers/for_any.rb