aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/lint_test.rb
blob: 7a817d7c01f1a68d0c9c9e22609f4a2c6ff58b3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require "cases/helper"

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

  class CompliantModel
    extend ActiveModel::Naming
    include ActiveModel::Conversion

    def persisted?() false end

    def errors
      Hash.new([])
    end
  end

  def setup
    @model = CompliantModel.new
  end
end