aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/associations_go_eager_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-04-19 05:24:50 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-04-19 05:24:50 +0000
commitcdf88b7b04a1d9a928410b1c90a8f1c1bc053c89 (patch)
tree3bb85ab0c92fa2c269ea8cdc395dd17cb420a95d /activerecord/test/associations_go_eager_test.rb
parent928206259bfcceb282a4e2aa6994ecdb216b22c3 (diff)
downloadrails-cdf88b7b04a1d9a928410b1c90a8f1c1bc053c89.tar.gz
rails-cdf88b7b04a1d9a928410b1c90a8f1c1bc053c89.tar.bz2
rails-cdf88b7b04a1d9a928410b1c90a8f1c1bc053c89.zip
Fixed stray comma when using eager loading and ordering together from has_many associations #1143
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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