diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-02-20 08:20:26 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-02-20 08:20:26 -0800 |
commit | 82a54324f615ae999c811b67701fd269b54d9fe4 (patch) | |
tree | 77784730efb77689419082290a476405d2bb5561 /activerecord/test/cases | |
parent | b85f63bbd00243787387d9c32901131851e8e424 (diff) | |
parent | 67d8bb963d5d51fc644d6b1ca20164efb4cee6d7 (diff) | |
download | rails-82a54324f615ae999c811b67701fd269b54d9fe4.tar.gz rails-82a54324f615ae999c811b67701fd269b54d9fe4.tar.bz2 rails-82a54324f615ae999c811b67701fd269b54d9fe4.zip |
Merge pull request #9068 from wangjohn/transaction_callback_patch
Reduced memory leak problem in transactions by lazily updating AR objects
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/transactions_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/transactions_test.rb b/activerecord/test/cases/transactions_test.rb index 546737b398..6d66342fa5 100644 --- a/activerecord/test/cases/transactions_test.rb +++ b/activerecord/test/cases/transactions_test.rb @@ -460,7 +460,7 @@ class TransactionTest < ActiveRecord::TestCase assert !transaction.state.committed? transaction.perform_rollback - + assert transaction.state.rolledback? assert !transaction.state.committed? end @@ -474,7 +474,7 @@ class TransactionTest < ActiveRecord::TestCase assert !transaction.state.committed? transaction.perform_commit - + assert !transaction.state.rolledback? assert transaction.state.committed? end |