提交 f7d8aac4 编写于 作者: J Jon Leighton

rm redundant test

now everything is converted to the new style, this is not needed
上级 45285f56
......@@ -1536,11 +1536,4 @@ def test_collection_association_with_private_kernel_method
post.taggings_with_delete_all.delete_all
end
end
test "association using a scope block" do
author = authors(:david)
assert author.posts.size > 1
assert_equal author.posts.order('posts.id').limit(1), author.posts_with_scope_block
end
end
......@@ -26,8 +26,6 @@ def testing_proxy_target
has_many :comments_with_order_and_conditions, -> { order('comments.body').where("comments.body like 'Thank%'") }, :through => :posts, :source => :comments
has_many :comments_with_include, -> { includes(:post) }, :through => :posts, :source => :comments
has_many :posts_with_scope_block, -> { order('posts.id').limit(1) }, :class_name => "Post"
has_many :first_posts
has_many :comments_on_first_posts, -> { order('posts.id desc, comments.id asc') }, :through => :first_posts, :source => :comments
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册