aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorTakehiro Adachi <takehiro0740@gmail.com>2013-03-11 20:27:13 +0900
committerTakehiro Adachi <takehiro0740@gmail.com>2013-03-11 20:27:13 +0900
commit8b80311e5ff412f2956be38535e05999fa57e12c (patch)
tree0d144f25b2fc5bdd36b9c8ab99898d21ee99b763 /activerecord
parent51af1b1126659f91db067eb404842cac39506d02 (diff)
downloadrails-8b80311e5ff412f2956be38535e05999fa57e12c.tar.gz
rails-8b80311e5ff412f2956be38535e05999fa57e12c.tar.bz2
rails-8b80311e5ff412f2956be38535e05999fa57e12c.zip
add an missing assertion to inheritance_test.rb
assertion for https://github.com/rails/rails/blob/ad624345e54bd20802de67b2b5c9ef29ecf5 d5f4/activerecord/lib/active_record/inheritance.rb#L32
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/inheritance_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/inheritance_test.rb b/activerecord/test/cases/inheritance_test.rb
index b91146db4e..0b9ccbf60a 100644
--- a/activerecord/test/cases/inheritance_test.rb
+++ b/activerecord/test/cases/inheritance_test.rb
@@ -68,6 +68,7 @@ class InheritanceTest < ActiveRecord::TestCase
end
def test_company_descends_from_active_record
+ assert !ActiveRecord::Base.descends_from_active_record?
assert AbstractCompany.descends_from_active_record?, 'AbstractCompany should descend from ActiveRecord::Base'
assert Company.descends_from_active_record?, 'Company should descend from ActiveRecord::Base'
assert !Class.new(Company).descends_from_active_record?, 'Company subclass should not descend from ActiveRecord::Base'