Sha256: a927b8b6c565f170125647825c9501cc6a7aca4333967d0e2df4566a012e4ef6
Contents?: true
Size: 398 Bytes
Versions: 4
Compression:
Stored size: 398 Bytes
Contents
module Matchi # **Truth** matcher. class BeTrue < BasicObject # @example Is it true? # be_true = Matchi::BeTrue.new # be_true.matches? { true } # => true # # @yieldreturn [#object_id] the actual value to compare to the expected one. # # @return [Boolean] Comparison between actual and expected values. def matches? true.equal?(yield) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
matchi-0.0.9 | lib/matchi/be_true.rb |
matchi-0.0.8 | lib/matchi/be_true.rb |
matchi-0.0.7 | lib/matchi/be_true.rb |
matchi-0.0.6 | lib/matchi/be_true.rb |