File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -2200,35 +2200,6 @@ class EnumTest < ActiveRecord::TestCase
2200
2200
end
2201
2201
end
2202
2202
2203
- require "models/task"
2204
- class QueryCacheExpiryTest < ActiveRecord ::TestCase
2205
- # SQL Server does not support skipping or upserting duplicates.
2206
- coerce_tests! :test_insert_all
2207
- def test_insert_all_coerced
2208
- assert_raises ( ArgumentError , /does not support skipping duplicates/ ) do
2209
- Task . cache { Task . insert ( { starting : Time . now } ) }
2210
- end
2211
-
2212
- assert_raises ( ArgumentError , /does not support upsert/ ) do
2213
- Task . cache { Task . upsert ( { starting : Time . now } ) }
2214
- end
2215
-
2216
- assert_raises ( ArgumentError , /does not support upsert/ ) do
2217
- Task . cache { Task . upsert_all ( [ { starting : Time . now } ] ) }
2218
- end
2219
-
2220
- Task . cache do
2221
- assert_called ( ActiveRecord ::Base . connection_pool . query_cache , :clear , times : 1 ) do
2222
- Task . insert_all! ( [ starting : Time . now ] )
2223
- end
2224
-
2225
- assert_called ( ActiveRecord ::Base . connection_pool . query_cache , :clear , times : 1 ) do
2226
- Task . insert! ( { starting : Time . now } )
2227
- end
2228
- end
2229
- end
2230
- end
2231
-
2232
2203
require "models/citation"
2233
2204
class EagerLoadingTooManyIdsTest < ActiveRecord ::TestCase
2234
2205
fixtures :citations
You can’t perform that action at this time.
0 commit comments