aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-07-31 16:52:37 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-07-31 16:52:37 -0300
commit88882964de8134c05355f8cfb303c4fc33a302bc (patch)
treec08960ac1a88703ceb57fb03182435b375156c00 /activerecord/test
parented9b23d8986a2d4025913e7c56f353a579ab0189 (diff)
parent4140797967a8f50eccaa70614c01531dab6a90f4 (diff)
downloadrails-88882964de8134c05355f8cfb303c4fc33a302bc.tar.gz
rails-88882964de8134c05355f8cfb303c4fc33a302bc.tar.bz2
rails-88882964de8134c05355f8cfb303c4fc33a302bc.zip
Merge pull request #16341 from arthurnn/transactions_remove_begin
Transactions refactoring - 2
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/transactions_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/transactions_test.rb b/activerecord/test/cases/transactions_test.rb
index f28a7b00e2..e518033192 100644
--- a/activerecord/test/cases/transactions_test.rb
+++ b/activerecord/test/cases/transactions_test.rb
@@ -546,7 +546,7 @@ class TransactionTest < ActiveRecord::TestCase
def test_transactions_state_from_rollback
connection = Topic.connection
- transaction = ActiveRecord::ConnectionAdapters::ClosedTransaction.new(connection).begin
+ transaction = ActiveRecord::ConnectionAdapters::TransactionManager.new(connection).begin_transaction
assert transaction.open?
assert !transaction.state.rolledback?
@@ -560,7 +560,7 @@ class TransactionTest < ActiveRecord::TestCase
def test_transactions_state_from_commit
connection = Topic.connection
- transaction = ActiveRecord::ConnectionAdapters::ClosedTransaction.new(connection).begin
+ transaction = ActiveRecord::ConnectionAdapters::TransactionManager.new(connection).begin_transaction
assert transaction.open?
assert !transaction.state.rolledback?