aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-12-22 18:22:54 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-12-22 18:23:38 -0800
commit3e64336647fefe598ff3b0775401e2c2c5d378d3 (patch)
tree05eabd9c5ace4f7283f53fcb909623a1ae2a3240 /activerecord/test/cases/associations
parent6ca921a98cefa2bce67486f1ba2a8f52f4170d78 (diff)
downloadrails-3e64336647fefe598ff3b0775401e2c2c5d378d3.tar.gz
rails-3e64336647fefe598ff3b0775401e2c2c5d378d3.tar.bz2
rails-3e64336647fefe598ff3b0775401e2c2c5d378d3.zip
removing SQL interpolation, please use scoping and attribute conditionals as a replacement
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r--activerecord/test/cases/associations/eager_test.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/test/cases/associations/eager_test.rb b/activerecord/test/cases/associations/eager_test.rb
index d5262b1ee4..6efb0d57e4 100644
--- a/activerecord/test/cases/associations/eager_test.rb
+++ b/activerecord/test/cases/associations/eager_test.rb
@@ -658,10 +658,6 @@ class EagerAssociationTest < ActiveRecord::TestCase
assert_equal people(:david, :susan), Person.find(:all, :include => [:readers, :primary_contact, :number1_fan], :conditions => "number1_fans_people.first_name like 'M%'", :order => 'people.id', :limit => 2, :offset => 0)
end
- def test_preload_with_interpolation
- assert_equal [comments(:greetings)], Post.find(posts(:welcome).id, :include => :comments_with_interpolated_conditions).comments_with_interpolated_conditions
- end
-
def test_polymorphic_type_condition
post = Post.find(posts(:thinking).id, :include => :taggings)
assert post.taggings.include?(taggings(:thinking_general))