1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

porting 515917f5d8 to master

This commit is contained in:
Aaron Patterson 2010-09-28 10:02:03 -07:00
parent 71acc2737a
commit bee447a5b9

View file

@ -357,6 +357,12 @@ class EagerAssociationTest < ActiveRecord::TestCase
end
end
def test_eager_with_has_many_through_association_with_order
author_comments = Author.find(authors(:david).id).comments_desc
eager_author_comments = Author.find(authors(:david).id, :include => :comments_desc).comments_desc
assert_equal eager_author_comments, author_comments
end
def test_eager_with_has_many_through_with_conditions_join_model_with_include
post_tags = Post.find(posts(:welcome).id).misc_tags
eager_post_tags = Post.find(1, :include => :misc_tags).misc_tags