aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorBogdan Gusiev <agresso@gmail.com>2012-02-22 17:43:13 +0200
committerBogdan Gusiev <agresso@gmail.com>2012-02-22 17:43:13 +0200
commit10bac29b330ddda69102d43b77a1e7dba8741c45 (patch)
treed7fcc8b8ff486b59e3694e8e25b1f9e45be969e1 /activesupport/test
parent157ea763060e90f3aba0ff5af15d5dcb0f0c9c35 (diff)
downloadrails-10bac29b330ddda69102d43b77a1e7dba8741c45.tar.gz
rails-10bac29b330ddda69102d43b77a1e7dba8741c45.tar.bz2
rails-10bac29b330ddda69102d43b77a1e7dba8741c45.zip
AS::Callbacks: deprecate rescuable option
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/callbacks_test.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/activesupport/test/callbacks_test.rb b/activesupport/test/callbacks_test.rb
index 3c995e0793..25688a9da5 100644
--- a/activesupport/test/callbacks_test.rb
+++ b/activesupport/test/callbacks_test.rb
@@ -3,7 +3,7 @@ require 'abstract_unit'
module CallbacksTest
class Phone
include ActiveSupport::Callbacks
- define_callbacks :save, :rescuable => true
+ define_callbacks :save
set_callback :save, :before, :before_save1
set_callback :save, :after, :after_save1
@@ -439,13 +439,6 @@ module CallbacksTest
end
class CallbacksTest < ActiveSupport::TestCase
- def test_save_phone
- phone = Phone.new
- assert_raise RuntimeError do
- phone.save
- end
- assert_equal [:before, :after], phone.history
- end
def test_save_person
person = Person.new