File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1184,6 +1184,19 @@ class CollectionCacheKeyTest < ActiveRecord::TestCase
11841184
11851185
11861186
1187+ module ActiveRecord
1188+ class CacheKeyTest < ActiveRecord ::TestCase
1189+ # Like Mysql2 and PostgreSQL, SQL Server doesn't return a string value for updated_at. In the Rails tests
1190+ # the tests are skipped if adapter is Mysql2 or PostgreSQL.
1191+ coerce_tests! %r{cache_version is the same when it comes from the DB or from the user}
1192+ coerce_tests! %r{cache_version does NOT call updated_at when value is from the database}
1193+ coerce_tests! %r{cache_version does not truncate zeros when timestamp ends in zeros}
1194+ end
1195+ end
1196+
1197+
1198+
1199+
11871200require "models/book"
11881201module ActiveRecord
11891202 class StatementCacheTest < ActiveRecord ::TestCase
You can’t perform that action at this time.
0 commit comments