Skip to content

Commit c28bb50

Browse files
author
Anna
committed
add references
1 parent 97e2b71 commit c28bb50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cases/eager_test_sqlserver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class EagerAssociationTest < ActiveRecord::TestCase
1515
fixtures :posts, :comments, :authors
1616

1717
def test_coerced_count_with_include
18-
assert_equal 3, authors(:david).posts_with_comments.where("len(comments.body) > 15").count
18+
assert_equal 3, authors(:david).posts_with_comments.where("len(comments.body) > 15").references(:comments).count
1919
end
2020

2121

0 commit comments

Comments
 (0)