Sha256: 358077c33fbedb720ff515f0971d04a19e3a4a3b81754708c7cc1dcc97159a5c
Contents?: true
Size: 285 Bytes
Versions: 1
Compression:
Stored size: 285 Bytes
Contents
module BaconExpect; module Matcher class Eq 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bacon-expect-1.0.2 | lib/bacon-expect/matchers/eq.rb |