public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
regression test for #4206

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4086 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
technoweenie (author)
Mon Mar 27 20:12:46 -0800 2006
commit  f630403021f425b0f8f57517e853f1b0083c1276
tree    b44f33152e0d5cdae080ad61c8bececbe080f61b
parent  4e3c101bcbed0ed9f3dec687023eadac3d9c51b8
...
42
43
44
 
 
 
 
 
45
46
47
...
42
43
44
45
46
47
48
49
50
51
52
0
@@ -42,6 +42,11 @@
0
     end
0
   end
0
 
0
+ def test_count_polymorphic_has_many
0
+ assert_equal 1, posts(:welcome).taggings.count
0
+ assert_equal 1, posts(:welcome).tags.count
0
+ end
0
+
0
   def test_polymorphic_has_many_going_through_join_model_with_find
0
     assert_equal tags(:general), tag = posts(:welcome).tags.find(:first)
0
     assert_no_queries do

Comments

    No one has commented yet.