Browse files

regression test for #4206

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 4e3c101 commit f630403021f425b0f8f57517e853f1b0083c1276 @technoweenie technoweenie committed Mar 28, 2006
Showing with 5 additions and 0 deletions.
  1. +5 −0 activerecord/test/associations_join_model_test.rb
View
5 activerecord/test/associations_join_model_test.rb
@@ -42,6 +42,11 @@ def test_polymorphic_has_many_going_through_join_model
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

0 comments on commit f630403

Please sign in to comment.