lib/matchi/matchers/be_false.rb in matchi-1.0.5 vs lib/matchi/matchers/be_false.rb in matchi-1.0.6

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -require_relative ::File.join('..', 'matchers_base') unless +require_relative File.join('..', 'matchers_base') unless defined?(::Matchi::MatchersBase) module Matchi module Matchers # **Untruth** matcher. @@ -15,14 +15,14 @@ # # @example Is it false? # be_false = Matchi::Matchers::BeFalse::Matcher.new # be_false.matches? { false } # => true # - # @yieldreturn [#object_id] the actual value to compare to the expected + # @yieldreturn [#object_id] The actual value to compare to the expected # one. # # @return [Boolean] Comparison between actual and expected values. - def matches? + def matches?(**) false.equal?(yield) end end end end