Skip to content

Commit 361b23b

Browse files
aidanharanAidan Haran
authored andcommitted
Fixed the namespace of the BasePreventWritesLegacyTest class (rails-sqlserver#911)
Co-authored-by: Aidan Haran <[email protected]>
1 parent 2c89c4f commit 361b23b

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)