Permalink
Browse files

Add extra order clause to fix failing test on Ruby 1.8.7

  • Loading branch information...
carlosantoniodasilva committed Apr 24, 2012
1 parent 9212083 commit 20f398d19f0cc5e18dc674369356da1726ceb675
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/associations/eager_test.rb
@@ -1097,7 +1097,7 @@ def test_join_eager_with_nil_order_should_generate_valid_sql
end
def test_deep_including_through_habtm
- posts = Post.find(:all, :include => {:categories => :categorizations}, :order => "posts.id")
+ posts = Post.find(:all, :include => {:categories => :categorizations}, :order => "posts.id, categories.id")
assert_no_queries { assert_equal 2, posts[0].categories[0].categorizations.length }
assert_no_queries { assert_equal 1, posts[0].categories[1].categorizations.length }
assert_no_queries { assert_equal 2, posts[1].categories[0].categorizations.length }

0 comments on commit 20f398d

Please sign in to comment.