aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/associations
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-10-11 14:02:24 +0000
committerRick Olson <technoweenie@gmail.com>2006-10-11 14:02:24 +0000
commit787049467341a75de469b58bcfe84f0959a2c3af (patch)
tree01f177b9d0f9a2cb37cb07e008aa2a56861d6ee3 /activerecord/test/associations
parent214d236e7d9967a887fecee6e24d4c96c4a344dc (diff)
downloadrails-787049467341a75de469b58bcfe84f0959a2c3af.tar.gz
rails-787049467341a75de469b58bcfe84f0959a2c3af.tar.bz2
rails-787049467341a75de469b58bcfe84f0959a2c3af.zip
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
Diffstat (limited to 'activerecord/test/associations')
-rw-r--r--activerecord/test/associations/join_model_test.rb7
1 files changed, 7 insertions, 0 deletions
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