Sha256: 41e98207d6aa9cf83e7fcccccb99dda6a71cce3d1709df78b385e72b5d50056c
Contents?: true
Size: 406 Bytes
Versions: 2
Compression:
Stored size: 406 Bytes
Contents
require "rspec" RSpec::Matchers.define :wildcard_match do |expected| match do |actual| WildcardMatchers.wildcard_match?(actual, expected) end failure_message_for_should do |actual| failures = [ default_failure_message_for_should ] on_failure = proc {|message| failures << message } WildcardMatchers.wildcard_match?(actual, expected, &on_failure) failures.join("\n") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wildcard_matchers-0.0.2 | lib/wildcard_matchers/rspec.rb |
wildcard_matchers-0.0.1 | lib/wildcard_matchers/rspec.rb |