Sha256: 2e2b539b87fe599804c144a6771d427442cbe7f36b17380817ea280c1d5e794f
Contents?: true
Size: 566 Bytes
Versions: 4
Compression:
Stored size: 566 Bytes
Contents
module Spec module Matchers class Exist def matches?(actual) @actual = actual actual.exist? end def failure_message_for_should "expected #{@actual.inspect} to exist, but it doesn't." end def failure_message_for_should_not "expected #{@actual.inspect} to not exist, but it does." end def description "exists" end end # :call-seq: # should exist # should_not exist # # Passes if actual.exist? def exist Exist.new end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
dchelimsky-rspec-1.1.99.13 | lib/spec/matchers/exist.rb |
rspec-1.2.0 | lib/spec/matchers/exist.rb |
rspec-1.2.1 | lib/spec/matchers/exist.rb |
rspec-1.2.2 | lib/spec/matchers/exist.rb |