lib/wildcard_matchers/helpers.rb in wildcard_matchers-0.0.3 vs lib/wildcard_matchers/helpers.rb in wildcard_matchers-0.0.4

- old
+ new

@@ -4,16 +4,16 @@ lambda do |actual| nil === actual or wildcard_match?(actual, expected, &on_failure) end end - def all(expected = nil, &on_failure) + def for_all(expected = nil, &on_failure) raise "expected or block is mandatory" unless expected or block_given? expected ||= block lambda do |actual| actual.all? do |item| - wildcard_match(item, expected, &on_failure) + wildcard_match?(item, expected, &on_failure) end end end end end