mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
22 lines
356 B
Ruby
22 lines
356 B
Ruby
# 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
|