diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-03-28 04:12:46 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-03-28 04:12:46 +0000 |
commit | f630403021f425b0f8f57517e853f1b0083c1276 (patch) | |
tree | b44f33152e0d5cdae080ad61c8bececbe080f61b | |
parent | 4e3c101bcbed0ed9f3dec687023eadac3d9c51b8 (diff) | |
download | rails-f630403021f425b0f8f57517e853f1b0083c1276.tar.gz rails-f630403021f425b0f8f57517e853f1b0083c1276.tar.bz2 rails-f630403021f425b0f8f57517e853f1b0083c1276.zip |
regression test for #4206
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | activerecord/test/associations_join_model_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/associations_join_model_test.rb b/activerecord/test/associations_join_model_test.rb index 5f8ac7e0c0..f0ee2eb9e7 100644 --- a/activerecord/test/associations_join_model_test.rb +++ b/activerecord/test/associations_join_model_test.rb @@ -42,6 +42,11 @@ class AssociationsJoinModelTest < Test::Unit::TestCase end end + def test_count_polymorphic_has_many + assert_equal 1, posts(:welcome).taggings.count + assert_equal 1, posts(:welcome).tags.count + end + def test_polymorphic_has_many_going_through_join_model_with_find assert_equal tags(:general), tag = posts(:welcome).tags.find(:first) assert_no_queries do |