From f630403021f425b0f8f57517e853f1b0083c1276 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Tue, 28 Mar 2006 04:12:46 +0000 Subject: [PATCH] regression test for #4206 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/associations_join_model_test.rb | 5 +++++ 1 file changed, 5 insertions(+) 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