Sha256: 8bf4b44c9539b93c6b288b8c52ad22da2c589f7b1a1ecb37e7207818cbf31de5

Contents?: true

Size: 476 Bytes

Versions: 1

Compression:

Stored size: 476 Bytes

Contents

require "cases/helper"

class LintTest < ActiveModel::TestCase
  include ActiveModel::Lint::Tests

  class CompliantModel
    extend ActiveModel::Naming

    def to_model
      self
    end

    def valid?()      true end
    def new_record?() true end
    def destroyed?()  true end

    def errors
      obj = Object.new
      def obj.[](key)         [] end
      def obj.full_messages() [] end
      obj
    end
  end

  def setup
    @model = CompliantModel.new
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cassandra_object-0.6.0.pre vendor/activemodel/test/cases/lint_test.rb