aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/transactions_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/transactions_test.rb')
-rw-r--r--activerecord/test/transactions_test.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/activerecord/test/transactions_test.rb b/activerecord/test/transactions_test.rb
index a8584cfd56..b0d1eb4eb8 100644
--- a/activerecord/test/transactions_test.rb
+++ b/activerecord/test/transactions_test.rb
@@ -90,12 +90,14 @@ class TransactionTest < Test::Unit::TestCase
assert !@first.approved?, "First should be unapproved initially"
begin
- Topic.transaction(@first, @second) do
- @first.approved = true
- @second.approved = false
- @first.save
- @second.save
- raise "Bad things!"
+ assert_deprecated /Object transactions/ do
+ Topic.transaction(@first, @second) do
+ @first.approved = true
+ @second.approved = false
+ @first.save
+ @second.save
+ raise "Bad things!"
+ end
end
rescue
# caught it