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

Version Path
aq1018-2000-2008-adapter-0.0.1 test/cases/eager_association_test_sqlserver.rb
aq1018-sqlserver-2000-2008-adpater-0.0.2 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-1.0.0 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-1.0.1 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-2.2.0 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-2.2.1 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-2.2.10 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-2.2.11 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-2.2.12 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-2.2.13 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-2.2.2 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-2.2.3 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-2.2.4 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-2.2.5 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-2.2.6 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-2.2.7 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-2.2.8 test/cases/eager_association_test_sqlserver.rb
rails-sqlserver-2000-2005-adapter-2.2.9 test/cases/eager_association_test_sqlserver.rb