aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/transaction_isolation_test.rb
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2018-08-23 19:40:04 +0930
committerGitHub <noreply@github.com>2018-08-23 19:40:04 +0930
commit123fe0c9ac559cb58a208c23a96669845f24dfb1 (patch)
tree5ea6d9893882d6eb48af809c54ec9f5c622dea83 /activerecord/test/cases/transaction_isolation_test.rb
parent2a321bff402bd990558b8a303f7168b5c4bcfc1d (diff)
parent0ac81ee6ff3d1625fdbcc40b12c00cbff2208077 (diff)
downloadrails-123fe0c9ac559cb58a208c23a96669845f24dfb1.tar.gz
rails-123fe0c9ac559cb58a208c23a96669845f24dfb1.tar.bz2
rails-123fe0c9ac559cb58a208c23a96669845f24dfb1.zip
Merge pull request #32647 from eugeneius/lazy_transactions
Omit BEGIN/COMMIT statements for empty transactions
Diffstat (limited to 'activerecord/test/cases/transaction_isolation_test.rb')
-rw-r--r--activerecord/test/cases/transaction_isolation_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/transaction_isolation_test.rb b/activerecord/test/cases/transaction_isolation_test.rb
index eaafd13360..8bcf121f15 100644
--- a/activerecord/test/cases/transaction_isolation_test.rb
+++ b/activerecord/test/cases/transaction_isolation_test.rb
@@ -11,7 +11,7 @@ unless ActiveRecord::Base.connection.supports_transaction_isolation?
test "setting the isolation level raises an error" do
assert_raises(ActiveRecord::TransactionIsolationError) do
- Tag.transaction(isolation: :serializable) {}
+ Tag.transaction(isolation: :serializable) { Topic.connection.materialize_transactions }
end
end
end