Sha256: aff70e539dbcea05d2797f6e986fd106094506ad6a5111905616f7611d44a01b

Contents?: true

Size: 298 Bytes

Versions: 17

Compression:

Stored size: 298 Bytes

Contents

module Rspec
  module Matchers
    # :call-seq:
    #   should exist
    #   should_not exist
    #
    # Passes if actual.exist?
    def exist(arg=nil)
      Matcher.new :exist do
        match do |actual|
          arg ? actual.exist?(arg) : actual.exist?
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rspec-expectations-2.0.0.beta.8 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.7 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.6 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.5 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.4 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.3 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.2 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.1 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.a10 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.a9 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.a8 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.a7 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.a6 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.a5 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.a4 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.a3 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.a2 lib/rspec/matchers/exist.rb