From f87db851c680164b6474d783d5f29b6cb4c013c0 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Fri, 16 Mar 2007 22:39:01 +0000 Subject: 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 --- activerecord/test/transactions_test.rb | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'activerecord/test') 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 -- cgit v1.2.3