aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/associations_go_eager_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/associations_go_eager_test.rb')
-rw-r--r--activerecord/test/associations_go_eager_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/associations_go_eager_test.rb b/activerecord/test/associations_go_eager_test.rb
index 8de37f3d92..20ea9656b8 100644
--- a/activerecord/test/associations_go_eager_test.rb
+++ b/activerecord/test/associations_go_eager_test.rb
@@ -25,7 +25,7 @@ class EagerAssociationTest < Test::Unit::TestCase
end
def test_loading_from_an_association
- posts = @david.posts.find(:all, :include => :comments)
+ posts = @david.posts.find(:all, :include => :comments, :order => "posts.id DESC")
assert_equal 2, posts.first.comments.size
end