Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 46c3a576cb7fe83c27bfedc6c17b4efe27dc3fb9 2 parents 51af1b1 + 8b80311
@rafaelfranca rafaelfranca authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  activerecord/test/cases/inheritance_test.rb
View
1  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'
Please sign in to comment.
Something went wrong with that request. Please try again.