提交 91dff300 编写于 作者: J Jeremy Kemper

SQLServer: fix eager association test. Closes #5901.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4815 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 3b1972a8
*SVN*
* SQLServer: fix eager association test. #5901 [Tom Ward]
* Clashing type columns due to a sloppy join shouldn't wreck single-table inheritance. #5838 [Kevin Clark]
* Fixtures: correct escaping of \n and \r. #5859 [evgeny.zislis@gmail.com]
......
......@@ -358,6 +358,10 @@ def test_preconfigured_includes_with_has_many_and_habtm
end
def test_count_with_include
assert_equal 3, authors(:david).posts_with_comments.count(:conditions => "length(comments.body) > 15")
if current_adapter?(:SQLServerAdapter)
assert_equal 3, authors(:david).posts_with_comments.count(:conditions => "len(comments.body) > 15")
else
assert_equal 3, authors(:david).posts_with_comments.count(:conditions => "length(comments.body) > 15")
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册