aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-12-24 10:23:19 +0000
committerJon Leighton <j@jonathanleighton.com>2011-12-24 11:08:16 +0000
commit0e3e34f0eba32ebc561f56e8eda22ed9b8ad76c7 (patch)
treead81a00d245f4fc2a3b81f6c5eba96febea6055d /activerecord/test/cases
parent15fbf5b58be386c8c5c02b06a4069c23cbcd5f0f (diff)
downloadrails-0e3e34f0eba32ebc561f56e8eda22ed9b8ad76c7.tar.gz
rails-0e3e34f0eba32ebc561f56e8eda22ed9b8ad76c7.tar.bz2
rails-0e3e34f0eba32ebc561f56e8eda22ed9b8ad76c7.zip
Support nested AR::Models
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/inclusion_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/inclusion_test.rb b/activerecord/test/cases/inclusion_test.rb
index 189e537bd6..4b3320cf04 100644
--- a/activerecord/test/cases/inclusion_test.rb
+++ b/activerecord/test/cases/inclusion_test.rb
@@ -29,6 +29,10 @@ class BasicInclusionModelTest < ActiveRecord::TestCase
assert_equal "Bob", Teapot.where(:id => [t]).first.name
assert_equal "Bob", Teapot.where(:id => t).first.name
end
+
+ def test_nested_model
+ assert_equal "ceiling_teapots", Ceiling::Teapot.table_name
+ end
end
class InclusionUnitTest < ActiveRecord::TestCase