aboutsummaryrefslogblamecommitdiffstats
path: root/activemodel/test/cases/lint_test.rb
blob: d62c80b71a419562e203efa3940c91da5e9be385 (plain) (tree)
1
2
3
4
5
6
7
8
9

                             
                      
 



                                      
                              
                                   
 
                              
 
              
                  

       
 

                               
     
   
# frozen_string_literal: true

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