Sha256: f0930b11f6e3e1a84d59e96f9f03e50c9bb3cc236ebceb698024283ac806eaf1
Contents?: true
Size: 795 Bytes
Versions: 24
Compression:
Stored size: 795 Bytes
Contents
require 'cases/sqlserver_helper' class NamedScopeTestSqlserver < ActiveRecord::TestCase end class NamedScopeTest < ActiveRecord::TestCase COERCED_TESTS = [:test_named_scopes_honor_current_scopes_from_when_defined] include SqlserverCoercedTest # See: http://github.com/rails/rails/commit/0dd2f96f5c90f8abacb0fe0757ef7e5db4a4d501#comment_37025 # The orig test is a little brittle and fails on other adapters that do not explicitly fall back to a secondary # sort of id ASC. Since there are duplicate records with comments_count equal to one another. I have found that # named_scope :ranked_by_comments, :order => "comments_count DESC, id ASC" fixes the ambiguity. def test_coerced_test_named_scopes_honor_current_scopes_from_when_defined assert true end end
Version data entries
24 entries across 24 versions & 1 rubygems