aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/transactions_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/transactions_test.rb b/activerecord/test/transactions_test.rb
index 098e01c945..c23f405914 100644
--- a/activerecord/test/transactions_test.rb
+++ b/activerecord/test/transactions_test.rb
@@ -149,13 +149,13 @@ class TransactionTest < Test::Unit::TestCase
end
def test_manually_rolling_back_a_transaction
- Topic.transaction do |transaction|
+ Topic.transaction do
@first.approved = true
@second.approved = false
@first.save
@second.save
- transaction.rollback!
+ raise ActiveRecord::Rollback
end
assert @first.approved?, "First should still be changed in the objects"