Skip to content

Commit

Permalink
Merge pull request #5971 from carlosantoniodasilva/fix-build-3-2
Browse files Browse the repository at this point in the history
Add extra order clause to fix failing test on Ruby 1.8.7
  • Loading branch information
jeremy committed Apr 25, 2012
2 parents 9212083 + 20f398d commit 7d95b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/associations/eager_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 7d95b81

Please sign in to comment.