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:
Jeremy Kemper
2007-12-05 22:06:26 +00:00
parent 0d82b146a1
commit 52fe604da3

View File

@@ -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