aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorArthur Neves <arthurnn@gmail.com>2014-07-28 14:26:27 -0400
committerArthur Neves <arthurnn@gmail.com>2014-07-31 15:46:08 -0400
commit91e4b65093f0c485507dadcb018c1f0d2661ba89 (patch)
tree7fe3b70843f083e860e4beab56c0aa3b8bc492b1 /activerecord/test
parent160cc6956c3c9da0eab66546d3c266d9f317bbc1 (diff)
downloadrails-91e4b65093f0c485507dadcb018c1f0d2661ba89.tar.gz
rails-91e4b65093f0c485507dadcb018c1f0d2661ba89.tar.bz2
rails-91e4b65093f0c485507dadcb018c1f0d2661ba89.zip
Remove being/number methods from transaction class
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?