Sha256: 26935b6f7d12017446413a8a5cfceb3346e6229e8a846e33a1ca76b156668fc5
Contents?: true
Size: 351 Bytes
Versions: 8
Compression:
Stored size: 351 Bytes
Contents
require "rspec" require "wildcard_matchers" RSpec.configure do |c| c.include WildcardMatchers end RSpec::Matchers.define :wildcard_match do |expected| match do |actual| @matcher = WildcardMatchers::WildcardMatcher.new(expected) @matcher === actual end failure_message_for_should do |actual| @matcher.errors.join("\n") end end
Version data entries
8 entries across 8 versions & 1 rubygems