diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-05-18 22:14:51 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-05-19 12:59:47 +0200 |
commit | 715f7c0b7c27a0fc4a6ec1619a0e4ccdce4fe85f (patch) | |
tree | 33aa815eb689f8db4d59ee848071b0fd75cd862d /activerecord/test | |
parent | 59c7b0c23a58b2499c911d8907ecd936b73b0172 (diff) | |
download | rails-715f7c0b7c27a0fc4a6ec1619a0e4ccdce4fe85f.tar.gz rails-715f7c0b7c27a0fc4a6ec1619a0e4ccdce4fe85f.tar.bz2 rails-715f7c0b7c27a0fc4a6ec1619a0e4ccdce4fe85f.zip |
Fixes a test on transaction_callbacks_test.rb
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/transaction_callbacks_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/transaction_callbacks_test.rb b/activerecord/test/cases/transaction_callbacks_test.rb index 7469cdb299..ebc16653cb 100644 --- a/activerecord/test/cases/transaction_callbacks_test.rb +++ b/activerecord/test/cases/transaction_callbacks_test.rb @@ -202,8 +202,8 @@ class TransactionCallbacksTest < ActiveRecord::TestCase def @first.rollbacks(i=0); @rollbacks ||= 0; @rollbacks += i if i; end def @first.commits(i=0); @commits ||= 0; @commits += i if i; end - @second.after_rollback_block{|r| r.rollbacks(1)} - @second.after_commit_block{|r| r.commits(1)} + @first.after_rollback_block{|r| r.rollbacks(1)} + @first.after_commit_block{|r| r.commits(1)} Topic.transaction do @first.save |