Sha256: c3620372ec793279a1d9a40ca67d504b1366e415c53671279588cd8fca66bacd
Contents?: true
Size: 428 Bytes
Versions: 1
Compression:
Stored size: 428 Bytes
Contents
module RSpec module Matchers module BuiltIn class Match < BaseMatcher def match(expected, actual) return true if values_match?(expected, actual) actual.match(expected) if actual.respond_to?(:match) end def description "match #{surface_descriptions_in(expected).inspect}" end def diffable? true end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-expectations-3.0.0.beta2 | lib/rspec/matchers/built_in/match.rb |