Sha256: 4c88d948e8757992a9212aa0b19f14cd6910f8e2c3f8fd282f32a1fa60fa30f1
Contents?: true
Size: 811 Bytes
Versions: 1
Compression:
Stored size: 811 Bytes
Contents
# frozen_string_literal: true module Quickdraw::Matchers::Equality def ==(other) assert value == other do "expected `#{value.inspect}` to == `#{other.inspect}`" end end def !=(other) assert value != other do "expected `#{value.inspect}` to != `#{other.inspect}`" end end def to_eql?(other) assert value.eql?(other) do "expected `#{value.inspect}` to eql? `#{other.inspect}`" end end def not_to_eql?(other) refute value.eql?(other) do "expected `#{value.inspect}` not to eql? `#{other.inspect}`" end end def to_equal?(other) assert value.equal?(other) do "expected `#{value.inspect}` to equal? `#{other.inspect}`" end end def not_to_equal?(other) refute value.equal?(other) do "expected `#{value.inspect}` not to equal? `#{other.inspect}`" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quickdraw-0.1.0 | lib/quickdraw/matchers/equality.rb |