Skip to content

Commit

Permalink
Removed tests that no longer need to be coerced
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan committed May 14, 2024
1 parent e8eb9a7 commit 37d2405
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions test/cases/coerced_tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,18 +229,6 @@ def test_update_date_time_attributes_with_default_timezone_local
end
end
end

# SQL Server does not have query for release_savepoint
coerce_tests! %r{an empty transaction does not raise if preventing writes}
test "an empty transaction does not raise if preventing writes coerced" do
ActiveRecord::Base.while_preventing_writes do
assert_queries_count(1, include_schema: true) do
Bird.transaction do
ActiveRecord::Base.lease_connection.materialize_transactions
end
end
end
end
end

class BelongsToAssociationsTest < ActiveRecord::TestCase
Expand Down Expand Up @@ -2368,20 +2356,6 @@ def test_preloads_belongs_to_a_composite_primary_key_model_through_id_attribute_
end
end

class BasePreventWritesTest < ActiveRecord::TestCase
# SQL Server does not have query for release_savepoint
coerce_tests! %r{an empty transaction does not raise if preventing writes}
test "an empty transaction does not raise if preventing writes coerced" do
ActiveRecord::Base.while_preventing_writes do
assert_queries_count(1, include_schema: true) do
Bird.transaction do
ActiveRecord::Base.lease_connection.materialize_transactions
end
end
end
end
end

class MigratorTest < ActiveRecord::TestCase
# Test fails on Windows AppVeyor CI for unknown reason.
coerce_tests! :test_migrator_db_has_no_schema_migrations_table if RbConfig::CONFIG["host_os"] =~ /mswin|mingw/
Expand Down

0 comments on commit 37d2405

Please sign in to comment.