diff options
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/associations_go_eager_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/associations_go_eager_test.rb b/activerecord/test/associations_go_eager_test.rb index d2ae4e0dd9..ddcd72d045 100644 --- a/activerecord/test/associations_go_eager_test.rb +++ b/activerecord/test/associations_go_eager_test.rb @@ -356,4 +356,8 @@ class EagerAssociationTest < Test::Unit::TestCase assert_equal 2, one.comments.size assert_equal 2, one.categories.size end + + def test_count_with_include + assert_equal 3, authors(:david).posts_with_comments.count(:conditions => "length(comments.body) > 15") + end end |