Sha256: 2d53a9fec353aeab4c0b337da5a90cce9e429b7028068a29dc13b34a3e8d2faa

Contents?: true

Size: 297 Bytes

Versions: 32

Compression:

Stored size: 297 Bytes

Contents

module Spec
  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

32 entries across 32 versions & 11 rubygems

Version Path
rango-0.0.6 vendor/rspec/lib/spec/matchers/exist.rb
rango-0.1.pre vendor/rspec/lib/spec/matchers/exist.rb
pupu-0.0.1 vendor/rspec/lib/spec/matchers/exist.rb
media-path-0.1 vendor/rspec/lib/spec/matchers/exist.rb
simple-templater-0.0.1 vendor/rspec/lib/spec/matchers/exist.rb
middleman-0.10.17 vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/exist.rb
middleman-0.10.16 vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/exist.rb
middleman-0.10.15 vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/exist.rb
rackjour-0.1.8 vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/exist.rb
middleman-0.10.14 vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/exist.rb
ageweke-rspec-1.2.9 lib/spec/matchers/exist.rb
rspec-1.2.9 lib/spec/matchers/exist.rb