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
rspec-instructure-1.3.3 lib/spec/matchers/exist.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/lib/spec/matchers/exist.rb
rspec-1.3.2 lib/spec/matchers/exist.rb
rspec-1.3.1 lib/spec/matchers/exist.rb
rspec-1.3.1.rc lib/spec/matchers/exist.rb
rspec-1.3.0 lib/spec/matchers/exist.rb
hubbub-0.0.11 lib/vendor/plugins/rspec/lib/spec/matchers/exist.rb
hubbub-0.0.10 lib/vendor/plugins/rspec/lib/spec/matchers/exist.rb
hubbub-0.0.9 lib/vendor/plugins/rspec/lib/spec/matchers/exist.rb
hubbub-0.0.8 lib/vendor/plugins/rspec/lib/spec/matchers/exist.rb
hubbub-0.0.6 lib/vendor/plugins/rspec/lib/spec/matchers/exist.rb
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/lib/spec/matchers/exist.rb
media-path-0.1.2 vendor/rspec/lib/spec/matchers/exist.rb
simple-templater-0.0.1.3 vendor/rspec/lib/spec/matchers/exist.rb
pupu-0.0.2.pre vendor/rspec/lib/spec/matchers/exist.rb
media-path-0.1.1.pre vendor/rspec/lib/spec/matchers/exist.rb
simple-templater-0.0.1.2 vendor/rspec/lib/spec/matchers/exist.rb
media-path-0.1.1 vendor/rspec/lib/spec/matchers/exist.rb
simple-templater-0.0.1.1 vendor/rspec/lib/spec/matchers/exist.rb
pupu-0.0.2 vendor/rspec/lib/spec/matchers/exist.rb