aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/lint_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/test/cases/lint_test.rb')
-rw-r--r--activemodel/test/cases/lint_test.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/activemodel/test/cases/lint_test.rb b/activemodel/test/cases/lint_test.rb
new file mode 100644
index 0000000000..d62c80b71a
--- /dev/null
+++ b/activemodel/test/cases/lint_test.rb
@@ -0,0 +1,22 @@
+# 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