Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 37d2405

Browse files
committedMay 14, 2024·
Removed tests that no longer need to be coerced
1 parent e8eb9a7 commit 37d2405

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed
 

‎test/cases/coerced_tests.rb

-26
Original file line numberDiff line numberDiff line change
@@ -229,18 +229,6 @@ def test_update_date_time_attributes_with_default_timezone_local
229229
end
230230
end
231231
end
232-
233-
# SQL Server does not have query for release_savepoint
234-
coerce_tests! %r{an empty transaction does not raise if preventing writes}
235-
test "an empty transaction does not raise if preventing writes coerced" do
236-
ActiveRecord::Base.while_preventing_writes do
237-
assert_queries_count(1, include_schema: true) do
238-
Bird.transaction do
239-
ActiveRecord::Base.lease_connection.materialize_transactions
240-
end
241-
end
242-
end
243-
end
244232
end
245233

246234
class BelongsToAssociationsTest < ActiveRecord::TestCase
@@ -2368,20 +2356,6 @@ def test_preloads_belongs_to_a_composite_primary_key_model_through_id_attribute_
23682356
end
23692357
end
23702358

2371-
class BasePreventWritesTest < ActiveRecord::TestCase
2372-
# SQL Server does not have query for release_savepoint
2373-
coerce_tests! %r{an empty transaction does not raise if preventing writes}
2374-
test "an empty transaction does not raise if preventing writes coerced" do
2375-
ActiveRecord::Base.while_preventing_writes do
2376-
assert_queries_count(1, include_schema: true) do
2377-
Bird.transaction do
2378-
ActiveRecord::Base.lease_connection.materialize_transactions
2379-
end
2380-
end
2381-
end
2382-
end
2383-
end
2384-
23852359
class MigratorTest < ActiveRecord::TestCase
23862360
# Test fails on Windows AppVeyor CI for unknown reason.
23872361
coerce_tests! :test_migrator_db_has_no_schema_migrations_table if RbConfig::CONFIG["host_os"] =~ /mswin|mingw/

0 commit comments

Comments
 (0)
Please sign in to comment.