aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-12-05 22:06:26 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-12-05 22:06:26 +0000
commit52fe604da3b72ebbe4d7789917cdcb2ef68b2e6d (patch)
tree4ba4c8555183e87ddf41d113db1703dbcc59116b /activerecord/test
parent0d82b146a1738eaf9a90102bd4f17452bc251560 (diff)
downloadrails-52fe604da3b72ebbe4d7789917cdcb2ef68b2e6d.tar.gz
rails-52fe604da3b72ebbe4d7789917cdcb2ef68b2e6d.tar.bz2
rails-52fe604da3b72ebbe4d7789917cdcb2ef68b2e6d.zip
Fix eager association test. Closes #10381 [alexey]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/associations/eager_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/associations/eager_test.rb b/activerecord/test/associations/eager_test.rb
index 673024adbc..4fc2e62842 100644
--- a/activerecord/test/associations/eager_test.rb
+++ b/activerecord/test/associations/eager_test.rb
@@ -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