aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-04-24 19:23:26 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-04-24 19:23:26 -0300
commit20f398d19f0cc5e18dc674369356da1726ceb675 (patch)
tree39438628a89a4eeda0dc91e22a2461d4dade6bbf /activerecord/test
parent9212083cd4ddb925882cde964b5e04eba4cc29f5 (diff)
downloadrails-20f398d19f0cc5e18dc674369356da1726ceb675.tar.gz
rails-20f398d19f0cc5e18dc674369356da1726ceb675.tar.bz2
rails-20f398d19f0cc5e18dc674369356da1726ceb675.zip
Add extra order clause to fix failing test on Ruby 1.8.7
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/associations/eager_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/eager_test.rb b/activerecord/test/cases/associations/eager_test.rb
index 4cc1378026..d7af07f9c7 100644
--- a/activerecord/test/cases/associations/eager_test.rb
+++ b/activerecord/test/cases/associations/eager_test.rb
@@ -1097,7 +1097,7 @@ class EagerAssociationTest < ActiveRecord::TestCase
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 }