aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-10-22 13:33:59 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-10-22 13:33:59 -0700
commitee71a3fbfc6fb8112a58a8fcae31a1c2a423ef3f (patch)
tree4024cde4930708f7cf0f0d99bbca54aeeaafc15f /activerecord/test
parent1ce76db9186a0b4ada341369f682bb8a0cd8da3b (diff)
downloadrails-ee71a3fbfc6fb8112a58a8fcae31a1c2a423ef3f.tar.gz
rails-ee71a3fbfc6fb8112a58a8fcae31a1c2a423ef3f.tar.bz2
rails-ee71a3fbfc6fb8112a58a8fcae31a1c2a423ef3f.zip
removing call to deprecated API, this test is outside AR responsibilities
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/relations_test.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb
index 222819cbe5..b01a8bbef1 100644
--- a/activerecord/test/cases/relations_test.rb
+++ b/activerecord/test/cases/relations_test.rb
@@ -25,13 +25,6 @@ class RelationTest < ActiveRecord::TestCase
assert_no_queries { car.engines.length }
end
- def test_apply_relation_as_where_id
- posts = Post.arel_table
- post_authors = posts.where(posts[:author_id].eq(1)).project(posts[:id])
- assert_equal 5, post_authors.to_a.size
- assert_equal 5, Post.where(:id => post_authors).size
- end
-
def test_dynamic_finder
x = Post.where('author_id = ?', 1)
assert x.klass.respond_to?(:find_by_id), '@klass should handle dynamic finders'