diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-05 22:06:26 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-05 22:06:26 +0000 |
commit | 52fe604da3b72ebbe4d7789917cdcb2ef68b2e6d (patch) | |
tree | 4ba4c8555183e87ddf41d113db1703dbcc59116b | |
parent | 0d82b146a1738eaf9a90102bd4f17452bc251560 (diff) | |
download | rails-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
-rw-r--r-- | activerecord/test/associations/eager_test.rb | 3 |
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 |