From 91dff3004192c2b94c17078f36b7d9fc35c1cf27 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 25 Aug 2006 03:30:21 +0000 Subject: SQLServer: fix eager association test. Closes #5901. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4815 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/associations_go_eager_test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'activerecord/test') diff --git a/activerecord/test/associations_go_eager_test.rb b/activerecord/test/associations_go_eager_test.rb index ddcd72d045..bcdd63ce34 100644 --- a/activerecord/test/associations_go_eager_test.rb +++ b/activerecord/test/associations_go_eager_test.rb @@ -358,6 +358,10 @@ class EagerAssociationTest < Test::Unit::TestCase 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 -- cgit v1.2.3