lib/matchi/be_true.rb in matchi-0.0.5 vs lib/matchi/be_true.rb in matchi-0.0.6
- old
+ new
@@ -3,9 +3,11 @@
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