Permalink
Browse files

Merge pull request #9658 from tkhr/add-assert-to-test_company_descend…

…s_from_active_record

add an missing assertion to inheritance_test.rb
  • Loading branch information...
2 parents 51af1b1 + 8b80311 commit 46c3a576cb7fe83c27bfedc6c17b4efe27dc3fb9 @rafaelfranca rafaelfranca committed Mar 11, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 activerecord/test/cases/inheritance_test.rb
@@ -68,6 +68,7 @@ def test_different_namespace_subclass_should_load_correctly_with_store_full_sti_
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'

0 comments on commit 46c3a57

Please sign in to comment.