lib/matchi/be_false.rb in matchi-0.0.5 vs lib/matchi/be_false.rb in matchi-0.0.6
- old
+ new
@@ -3,9 +3,11 @@
class BeFalse < BasicObject
# @example Is it false?
# be_false = Matchi::BeFalse.new
# be_false.matches? { false } # => true
#
+ # @yieldreturn [#object_id] the actual value to compare to the expected one.
+ #
# @return [Boolean] Comparison between actual and expected values.
def matches?
false.equal?(yield)
end
end