Sha256: d9b75ebc7f3c65f3d3c7c584fb0d598fac6a7ce2552a080ff657d8049552a893
Contents?: true
Size: 330 Bytes
Versions: 2
Compression:
Stored size: 330 Bytes
Contents
module Expect module Matcher # Provides the implementation for `equal`. class Equal < BasicObject def initialize(expected) @expected = expected end # @return [Boolean] Comparison between actual and expected values. def matches? @expected.equal? yield end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
expect-0.0.2 | lib/expect/matcher/equal.rb |
expect-0.0.1 | lib/expect/matcher/equal.rb |