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
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/lib/spec/matchers/exist.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/lib/spec/matchers/exist.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/lib/spec/matchers/exist.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/lib/spec/matchers/exist.rb
picolena-0.0.99 app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/exist.rb
picolena-0.1.0 rails_plugins/rspec/lib/spec/matchers/exist.rb
picolena-0.1.1 rails_plugins/rspec/lib/spec/matchers/exist.rb
picolena-0.1.4 rails_plugins/rspec/lib/spec/matchers/exist.rb
picolena-0.1.3 rails_plugins/rspec/lib/spec/matchers/exist.rb
picolena-0.1.2 rails_plugins/rspec/lib/spec/matchers/exist.rb
picolena-0.1.5 rails_plugins/rspec/lib/spec/matchers/exist.rb
picolena-0.1.6 rails_plugins/rspec/lib/spec/matchers/exist.rb
picolena-0.1.7 rails_plugins/rspec/lib/spec/matchers/exist.rb
picolena-0.1.8 rails_plugins/rspec/lib/spec/matchers/exist.rb
pictrails-0.5.0 vendor/plugins/rspec/lib/spec/matchers/exist.rb
radiant-0.6.5.1 vendor/plugins/rspec/lib/spec/matchers/exist.rb
radiant-0.6.5 vendor/plugins/rspec/lib/spec/matchers/exist.rb
radiant-0.6.6 vendor/plugins/rspec/lib/spec/matchers/exist.rb
radiant-0.6.7 vendor/plugins/rspec/lib/spec/matchers/exist.rb
radiant-0.6.9 vendor/plugins/rspec/lib/spec/matchers/exist.rb