mirror of
https://github.com/github/rails.git
synced 2026-01-30 16:58:15 -05:00
Fix eager association test. Closes #10381 [alexey]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -42,7 +42,8 @@ class EagerAssociationTest < Test::Unit::TestCase
|
||||
:select => "posts.*",
|
||||
:from => "authors, posts",
|
||||
:include => :comments,
|
||||
:conditions => "posts.author_id = authors.id"
|
||||
:conditions => "posts.author_id = authors.id",
|
||||
:order => "posts.id"
|
||||
)
|
||||
|
||||
assert_equal 2, posts.first.comments.size
|
||||
|
||||
Reference in New Issue
Block a user