diff options
author | Hongli Lai (Phusion) <hongli@phusion.nl> | 2008-10-09 16:24:15 +0200 |
---|---|---|
committer | Hongli Lai (Phusion) <hongli@phusion.nl> | 2008-11-03 20:56:21 +0100 |
commit | e916aa7ea1613be966959c05ad41d13fee55a683 (patch) | |
tree | af4c0af070225f2e6b2d0eccc62b48021634a225 /activerecord/test | |
parent | 885c11b8f9e18f34b12076023455e72166365f00 (diff) | |
download | rails-e916aa7ea1613be966959c05ad41d13fee55a683.tar.gz rails-e916aa7ea1613be966959c05ad41d13fee55a683.tar.bz2 rails-e916aa7ea1613be966959c05ad41d13fee55a683.zip |
Rename ActiveRecord::Base#transaction's :force option to :nest. Improve documentation for nested transactions.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/transactions_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/test/cases/transactions_test.rb b/activerecord/test/cases/transactions_test.rb index 3c6bfd7e22..069ba9d6c5 100644 --- a/activerecord/test/cases/transactions_test.rb +++ b/activerecord/test/cases/transactions_test.rb @@ -215,7 +215,7 @@ class TransactionTest < ActiveRecord::TestCase def test_invalid_keys_for_transaction assert_raises ArgumentError do - Topic.transaction :forced => true do + Topic.transaction :nested => true do end end end @@ -228,7 +228,7 @@ class TransactionTest < ActiveRecord::TestCase @second.save! begin - Topic.transaction :force => true do + Topic.transaction :nest => true do @first.happy = false @first.save! raise @@ -268,17 +268,17 @@ class TransactionTest < ActiveRecord::TestCase @first.save! begin - Topic.transaction :force => true do + Topic.transaction :nest => true do @first.content = "Two" @first.save! begin - Topic.transaction :force => true do + Topic.transaction :nest => true do @first.content = "Three" @first.save! begin - Topic.transaction :force => true do + Topic.transaction :nest => true do @first.content = "Four" @first.save! raise |