提交 1d75efed 编写于 作者: A Aaron Patterson

:cut: whitespace

上级 45318e40
......@@ -1186,10 +1186,10 @@ def test_deep_including_through_habtm
author = Author.includes(:posts).references(:posts).reorder(:name).find_by('posts.title IS NOT NULL')
assert_equal authors(:bob), author
end
test "preloading with a polymorphic association and using the existential predicate" do
assert_equal authors(:david), authors(:david).essays.includes(:writer).first.writer
assert_nothing_raised do
authors(:david).essays.includes(:writer).any?
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册