Sha256: c57e2c01084585785d341ce2e429c1bc2eb1ec6ddb4d9ccf3e17ef865ba0e7a7

Contents?: true

Size: 286 Bytes

Versions: 2

Compression:

Stored size: 286 Bytes

Contents

module BaconExpect; module Matcher
  class Eql
    def initialize(value)
      @value = value
    end

    def matches?(subject)
      subject == @value
    end

    def fail!(subject)
      raise FailedExpectation.new("#{subject} expected to be == to #{@value}")
    end
  end
end; end

Version data entries

2 entries across 2 versions & 1 rubygems

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