Sha256: ebd1653d3079cbc07f6bcd04d6c45ca0f520edda128215e3d24ada34c145a72e

Contents?: true

Size: 388 Bytes

Versions: 42

Compression:

Stored size: 388 Bytes

Contents

module Spec
  module Matchers
    class Exist
      def matches? actual
        @actual = actual
        @actual.exist?
      end
      def failure_message
        "expected #{@actual.inspect} to exist, but it doesn't."
      end
      def negative_failure_message
        "expected #{@actual.inspect} to not exist, but it does."
      end
    end
    def exist; Exist.new; end
  end
end

Version data entries

42 entries across 42 versions & 7 rubygems

Version Path
radiant-0.6.8 vendor/plugins/rspec/lib/spec/matchers/exist.rb
rspec-0.0.10 lib/spec/matchers/exist.rb
rspec-1.1.1 lib/spec/matchers/exist.rb
rspec-1.1.0 lib/spec/matchers/exist.rb
rspec-1.1.4 lib/spec/matchers/exist.rb
rspec-1.1.5 lib/spec/matchers/exist.rb
rspec-1.1.3 lib/spec/matchers/exist.rb
rspec-1.1.2 lib/spec/matchers/exist.rb
spree-0.2.0 vendor/plugins/rspec/lib/spec/matchers/exist.rb
spree-0.4.1 vendor/plugins/rspec/lib/spec/matchers/exist.rb
spree-0.4.0 vendor/plugins/rspec/lib/spec/matchers/exist.rb
spree-0.5.0 vendor/plugins/rspec/lib/spec/matchers/exist.rb
spree-0.5.1 vendor/plugins/rspec/lib/spec/matchers/exist.rb
typo-5.0.1 vendor/plugins/rspec/lib/spec/matchers/exist.rb
typo-5.0.2 vendor/plugins/rspec/lib/spec/matchers/exist.rb
typo-5.0.3.98.1 vendor/plugins/rspec/lib/spec/matchers/exist.rb
typo-5.0 vendor/plugins/rspec/lib/spec/matchers/exist.rb
typo-5.0.3.98 vendor/plugins/rspec/lib/spec/matchers/exist.rb
typo-5.1.2 vendor/plugins/rspec/lib/spec/matchers/exist.rb
typo-5.1.1 vendor/plugins/rspec/lib/spec/matchers/exist.rb