Permalink
Browse files

SQLServer: fix eager association test. Closes #5901.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4815 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
jeremy committed Aug 25, 2006
1 parent 3b1972a commit 91dff3004192c2b94c17078f36b7d9fc35c1cf27
Showing with 7 additions and 1 deletion.
  1. +2 −0 activerecord/CHANGELOG
  2. +5 −1 activerecord/test/associations_go_eager_test.rb
@@ -1,5 +1,7 @@
*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

0 comments on commit 91dff30

Please sign in to comment.