lib/wildcard_matchers/rspec.rb in wildcard_matchers-0.1.7 vs lib/wildcard_matchers/rspec.rb in wildcard_matchers-0.1.8
- old
+ new
@@ -13,5 +13,12 @@
failure_message_for_should do |actual|
@matcher.errors.join("\n")
end
end
+
+module RSpec::Matchers
+ alias wildcard_match_without_block wildcard_match
+ def wildcard_match(expected = nil, &block)
+ wildcard_match_without_block((block_given? ? block : expected))
+ end
+end