Sha256: 72c79210da7e4d3fde39d9cf948d44dea14b16b66696e3c959ca1f10dd34ca6f
Contents?: true
Size: 757 Bytes
Versions: 3
Compression:
Stored size: 757 Bytes
Contents
require_relative File.join('..', 'matchers_base') unless defined?(::Matchi::MatchersBase) module Matchi module Matchers # **Untruth** matcher. module BeFalse # The matcher. class Matcher include MatchersBase # Boolean comparison between the actual value and the expected value. # # @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 # one. # # @return [Boolean] Comparison between actual and expected values. def matches? false.equal?(yield) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
matchi-1.0.2 | lib/matchi/matchers/be_false.rb |
matchi-1.0.1 | lib/matchi/matchers/be_false.rb |
matchi-1.0.0 | lib/matchi/matchers/be_false.rb |