removing call to deprecated API, this test is outside AR responsibilities

This commit is contained in:
Aaron Patterson 2010-10-22 13:33:59 -07:00
parent 1ce76db918
commit ee71a3fbfc
1 changed files with 0 additions and 7 deletions

View File

@ -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'