diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-03-16 22:39:01 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-03-16 22:39:01 +0000 |
commit | f87db851c680164b6474d783d5f29b6cb4c013c0 (patch) | |
tree | 54fb824532902b536fbe8141378a6babed26f0a5 /activerecord/test/transactions_test.rb | |
parent | 16b4739e1ef4bc6846c2fd08f81f87eb76b45692 (diff) | |
download | rails-f87db851c680164b6474d783d5f29b6cb4c013c0.tar.gz rails-f87db851c680164b6474d783d5f29b6cb4c013c0.tar.bz2 rails-f87db851c680164b6474d783d5f29b6cb4c013c0.zip |
Remove deprecated object transactions. People relying on this functionality should install the object_transactions plugin at http://code.bitsweat.net/svn/object_transactions. Closes #5637 [Koz, Jeremy Kemper]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/transactions_test.rb')
-rw-r--r-- | activerecord/test/transactions_test.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/activerecord/test/transactions_test.rb b/activerecord/test/transactions_test.rb index f20c763268..098e01c945 100644 --- a/activerecord/test/transactions_test.rb +++ b/activerecord/test/transactions_test.rb @@ -86,26 +86,6 @@ class TransactionTest < Test::Unit::TestCase assert Topic.find(2).approved?, "Second should still be approved" end - def test_failing_with_object_rollback - assert !@first.approved?, "First should be unapproved initially" - - begin - 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 - end - - assert !@first.approved?, "First shouldn't have been approved" - assert @second.approved?, "Second should still be approved" - end def test_callback_rollback_in_save add_exception_raising_after_save_callback_to_topic |