mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
porting 515917f5d8 to master
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user