@@ -243,25 +243,6 @@ def test_update_date_time_attributes_with_default_timezone_local
243
243
end
244
244
end
245
245
246
- class HasManyThroughAssociationsTest < ActiveRecord ::TestCase
247
- # SQL Server does not have query for release_savepoint
248
- coerce_tests! :test_associate_existing
249
- def test_associate_existing_coerced
250
- post = posts ( :thinking )
251
- person = people ( :david )
252
-
253
- assert_queries_count ( 2 ) do
254
- post . people << person
255
- end
256
-
257
- assert_queries_count ( 1 ) do
258
- assert_includes post . people , person
259
- end
260
-
261
- assert_includes post . reload . people . reload , person
262
- end
263
- end
264
-
265
246
class BelongsToAssociationsTest < ActiveRecord ::TestCase
266
247
# Since @client.firm is a single first/top, and we use FETCH the order clause is used.
267
248
coerce_tests! :test_belongs_to_does_not_use_order_by
@@ -1335,18 +1316,6 @@ def test_registering_new_handlers_for_association_coerced
1335
1316
end
1336
1317
end
1337
1318
1338
- class PrimaryKeysTest < ActiveRecord ::TestCase
1339
- # SQL Server does not have query for release_savepoint
1340
- coerce_tests! :test_create_without_primary_key_no_extra_query
1341
- def test_create_without_primary_key_no_extra_query_coerced
1342
- klass = Class . new ( ActiveRecord ::Base ) do
1343
- self . table_name = "dashboards"
1344
- end
1345
- klass . create! # warmup schema cache
1346
- assert_queries_count ( 2 , include_schema : true ) { klass . create! }
1347
- end
1348
- end
1349
-
1350
1319
require "models/task"
1351
1320
class QueryCacheTest < ActiveRecord ::TestCase
1352
1321
# SQL Server adapter not in list of supported adapters in original test.
@@ -1633,8 +1602,11 @@ def test_releasing_named_savepoints_coerced
1633
1602
1634
1603
Topic . lease_connection . create_savepoint ( "another" )
1635
1604
Topic . lease_connection . release_savepoint ( "another" )
1636
- # We do not have a notion of releasing, so this does nothing vs raise an error.
1637
- Topic . lease_connection . release_savepoint ( "another" )
1605
+
1606
+ # We do not have a notion of releasing, so this does nothing and doesn't raise an error.
1607
+ assert_nothing_raised do
1608
+ Topic . lease_connection . release_savepoint ( "another" )
1609
+ end
1638
1610
end
1639
1611
end
1640
1612
0 commit comments