diff options
author | Akira Matsuda <ronnie@dio.jp> | 2011-08-24 21:09:41 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2011-08-24 21:11:15 +0900 |
commit | 0a0da9d554490f01fe57d69fe8d98f29b02be3e5 (patch) | |
tree | ba6665551073081446d2a25fe6bf9a589baa0652 /activerecord/test | |
parent | eb0b71478ad4c37fdc4ec77bf2cf7c6b65dd36c4 (diff) | |
download | rails-0a0da9d554490f01fe57d69fe8d98f29b02be3e5.tar.gz rails-0a0da9d554490f01fe57d69fe8d98f29b02be3e5.tar.bz2 rails-0a0da9d554490f01fe57d69fe8d98f29b02be3e5.zip |
do not compute table names for abstract classes
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index fe46c00b47..bee183cc67 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1625,6 +1625,10 @@ class BasicsTest < ActiveRecord::TestCase assert !LooseDescendant.abstract_class? end + def test_abstract_class_table_name + assert_nil AbstractCompany.table_name + end + def test_base_class assert_equal LoosePerson, LoosePerson.base_class assert_equal LooseDescendant, LooseDescendant.base_class |