Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions test/cases/coerced_tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,19 @@ class CollectionCacheKeyTest < ActiveRecord::TestCase



module ActiveRecord
class CacheKeyTest < ActiveRecord::TestCase
# Like Mysql2 and PostgreSQL, SQL Server doesn't return a string value for updated_at. In the Rails tests
# the tests are skipped if adapter is Mysql2 or PostgreSQL.
coerce_tests! %r{cache_version is the same when it comes from the DB or from the user}
coerce_tests! %r{cache_version does NOT call updated_at when value is from the database}
coerce_tests! %r{cache_version does not truncate zeros when timestamp ends in zeros}
end
end




require "models/book"
module ActiveRecord
class StatementCacheTest < ActiveRecord::TestCase
Expand Down