Skip to content

Commit df110e8

Browse files
aidanharanAidan Haran
andauthored
Fixed the namespace of the BasePreventWritesLegacyTest class (#911)
Co-authored-by: Aidan Haran <aharan@fusioneer.com>
1 parent c4ae5f1 commit df110e8

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

test/cases/coerced_tests.rb

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,18 +1760,20 @@ class BasePreventWritesTest < ActiveRecord::TestCase
17601760
end
17611761
end
17621762
end
1763-
end
17641763

1765-
class BasePreventWritesLegacyTest < ActiveRecord::TestCase
1766-
# SQL Server does not have query for release_savepoint
1767-
coerce_tests! %r{an empty transaction does not raise if preventing writes}
1768-
test "an empty transaction does not raise if preventing writes coerced" do
1769-
ActiveRecord::Base.connection_handler.while_preventing_writes do
1770-
assert_queries(1, ignore_none: true) do
1771-
Bird.transaction do
1772-
ActiveRecord::Base.connection.materialize_transactions
1764+
class BasePreventWritesLegacyTest < ActiveRecord::TestCase
1765+
# SQL Server does not have query for release_savepoint
1766+
coerce_tests! %r{an empty transaction does not raise if preventing writes}
1767+
test "an empty transaction does not raise if preventing writes coerced" do
1768+
ActiveRecord::Base.connection_handler.while_preventing_writes do
1769+
assert_queries(1, ignore_none: true) do
1770+
Bird.transaction do
1771+
ActiveRecord::Base.connection.materialize_transactions
1772+
end
17731773
end
17741774
end
17751775
end
17761776
end
17771777
end
1778+
1779+

0 commit comments

Comments
 (0)