Sha256: d45aaed6d9594e910399bf2a88541c9481b3019e3e4da9d65e028bebbd320500
Contents?: true
Size: 513 Bytes
Versions: 18
Compression:
Stored size: 513 Bytes
Contents
require 'cases/sqlserver_helper' require 'models/author' require 'models/post' require 'models/comment' class EagerAssociationTestSqlserver < ActiveRecord::TestCase end class EagerAssociationTest < ActiveRecord::TestCase COERCED_TESTS = [:test_count_with_include] include SqlserverCoercedTest fixtures :authors, :posts, :comments def test_coerced_test_count_with_include assert_equal 3, authors(:david).posts_with_comments.count(:conditions => "len(comments.body) > 15") end end
Version data entries
18 entries across 18 versions & 3 rubygems