Sha256: 06e68f1901c87a31f5abda5f531a9c147df59083c81b16e3aca436f3f6e33728

Contents?: true

Size: 298 Bytes

Versions: 38

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

38 entries across 38 versions & 3 rubygems

Version Path
gemrage-0.1.1 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/exist.rb
gemrage-0.1.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/exist.rb
gemrage-0.0.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.rc lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.22 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.20 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.19 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.18 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.17 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.16 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.15 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.14 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.13 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.12 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.11 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.10 lib/rspec/matchers/exist.rb
rspec-expectations-2.0.0.beta.9 lib/rspec/matchers/exist.rb