Sha256: f343c5ce2f369752720f0c04f2db62a5fb3b665514bf6a1dedf4d387e4d6f059

Contents?: true

Size: 423 Bytes

Versions: 18

Compression:

Stored size: 423 Bytes

Contents

module Spec
  module Matchers
    # :call-seq:
    #   should exist
    #   should_not exist
    #
    # Passes if actual.exist?
    def exist
      simple_matcher do |actual, matcher|
        matcher.failure_message = "expected #{actual.inspect} to exist, but it doesn't."
        matcher.negative_failure_message = "expected #{actual.inspect} to not exist, but it does."
        actual.exist?
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 6 rubygems

Version Path
dchelimsky-rspec-1.1.11.1 lib/spec/matchers/exist.rb
dchelimsky-rspec-1.1.11.2 lib/spec/matchers/exist.rb
dchelimsky-rspec-1.1.11.3 lib/spec/matchers/exist.rb
dchelimsky-rspec-1.1.11.4 lib/spec/matchers/exist.rb
dchelimsky-rspec-1.1.11.5 lib/spec/matchers/exist.rb
dchelimsky-rspec-1.1.11.6 lib/spec/matchers/exist.rb
dchelimsky-rspec-1.1.11.7 lib/spec/matchers/exist.rb
dchelimsky-rspec-1.1.12 lib/spec/matchers/exist.rb
newbamboo-evented-rspec-1.1.12 lib/spec/matchers/exist.rb
newbamboo-rspec-1.1.12 lib/spec/matchers/exist.rb
mack-0.8.3 lib/gems/rspec-1.1.12/lib/spec/matchers/exist.rb
mack-0.8.3.1 lib/gems/rspec-1.1.12/lib/spec/matchers/exist.rb
rspec-1.1.12 lib/spec/matchers/exist.rb
spree-0.6.0 vendor/plugins/rspec/lib/spec/matchers/exist.rb
spree-0.7.1 vendor/plugins/rspec/lib/spec/matchers/exist.rb
spree-0.7.0 vendor/plugins/rspec/lib/spec/matchers/exist.rb
spree-0.8.0 vendor/plugins/rspec/lib/spec/matchers/exist.rb
spree-0.8.1 vendor/plugins/rspec/lib/spec/matchers/exist.rb