diff options
author | Grant Hutchins & Peter Jaros <pair+grant+pjaros@pivotallabs.com> | 2011-07-08 17:51:40 -0400 |
---|---|---|
committer | Grant Hutchins & Peter Jaros <pair+grant+pjaros@pivotallabs.com> | 2011-07-08 17:51:40 -0400 |
commit | 6b9c38c1a8ab8fdd9c77ac87d13c413f8c741928 (patch) | |
tree | 8af81fa236288f6f794666e3d939c2928978ac00 /activerecord/test/cases | |
parent | 4f7ca00bf28fab4bc788e278734debaec70ea838 (diff) | |
download | rails-6b9c38c1a8ab8fdd9c77ac87d13c413f8c741928.tar.gz rails-6b9c38c1a8ab8fdd9c77ac87d13c413f8c741928.tar.bz2 rails-6b9c38c1a8ab8fdd9c77ac87d13c413f8c741928.zip |
ActiveRecord::Base should pass ActiveModel::Lint.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 5fef3faab9..9feb7b010f 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -53,6 +53,16 @@ class Weird < ActiveRecord::Base; end class Boolean < ActiveRecord::Base; end +class LintTest < ActiveRecord::TestCase + include ActiveModel::Lint::Tests + + class LintModel < ActiveRecord::Base; end + + def setup + @model = LintModel.new + end +end + class BasicsTest < ActiveRecord::TestCase fixtures :topics, :companies, :developers, :projects, :computers, :accounts, :minimalistics, 'warehouse-things', :authors, :categorizations, :categories, :posts |