diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-11-02 18:12:18 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-11-02 18:12:18 +0000 |
commit | 88d9b32496140c9a00b8c1e1e55c48bd6f653756 (patch) | |
tree | 093621c932b063e1bf8a5d0e99806f003b3bd73c /activerecord/test | |
parent | 7ca2b657f01b09014cd1fb0494fb13ab63dafe5c (diff) | |
download | rails-88d9b32496140c9a00b8c1e1e55c48bd6f653756.tar.gz rails-88d9b32496140c9a00b8c1e1e55c48bd6f653756.tar.bz2 rails-88d9b32496140c9a00b8c1e1e55c48bd6f653756.zip |
Deprecation: object transactions warning.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5405 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/transactions_test.rb | 14 |
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 |