Sha256: 23c168c12798e1921a18d4528d2e79e796062baeac53f29e2e2d6e54b80f04cb

Contents?: true

Size: 222 Bytes

Versions: 3

Compression:

Stored size: 222 Bytes

Contents

module BaconExpect; module Matcher
  class BeFalse
    def matches?(value)
      !value
    end

    def fail!(subject)
      raise FailedExpectation.new("#{subject} expected to be false but wasn't")
    end
  end
end; end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bacon-expect-1.0.2 lib/bacon-expect/matchers/be_false.rb
bacon-expect-1.0.1 lib/bacon-expect/matchers/be_false.rb
bacon-expect-0.1 lib/bacon-expect/matchers/be_false.rb