From 787049467341a75de469b58bcfe84f0959a2c3af Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Wed, 11 Oct 2006 14:02:24 +0000 Subject: Restore eager condition interpolation, document it's differences [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5284 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/associations/join_model_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'activerecord/test/associations') diff --git a/activerecord/test/associations/join_model_test.rb b/activerecord/test/associations/join_model_test.rb index 7b77765d7a..2c7902a695 100644 --- a/activerecord/test/associations/join_model_test.rb +++ b/activerecord/test/associations/join_model_test.rb @@ -351,6 +351,13 @@ class AssociationsJoinModelTest < Test::Unit::TestCase assert_equal [1,2,3,5,6,7,8,9,10], author.comments.collect(&:id) end end + + def test_eager_load_has_many_through_has_many_with_conditions + post = Post.find(:first, :include => :invalid_tags) + assert_no_queries do + post.invalid_tags + end + end def test_eager_belongs_to_and_has_one_not_singularized assert_nothing_raised do -- cgit v1.2.3