aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/deprecation_test.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-08-13 01:38:48 +0200
committerXavier Noria <fxn@hashref.com>2013-08-13 01:44:52 +0200
commitc7ac0a5b28e1403371e4c65666ec92dd2bf0e0d6 (patch)
tree8eb093a183943e1d96153c520683541ce489e6d8 /activesupport/test/deprecation_test.rb
parent4c1454db22cb42d185afc58312e1d62c0f542f44 (diff)
downloadrails-c7ac0a5b28e1403371e4c65666ec92dd2bf0e0d6.tar.gz
rails-c7ac0a5b28e1403371e4c65666ec92dd2bf0e0d6.tar.bz2
rails-c7ac0a5b28e1403371e4c65666ec92dd2bf0e0d6.zip
renames the :abort deprecation behaviour to :raise
That is a better name, thanks @jeremy.
Diffstat (limited to 'activesupport/test/deprecation_test.rb')
-rw-r--r--activesupport/test/deprecation_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/test/deprecation_test.rb b/activesupport/test/deprecation_test.rb
index 641e5a210c..9674851b9d 100644
--- a/activesupport/test/deprecation_test.rb
+++ b/activesupport/test/deprecation_test.rb
@@ -98,8 +98,8 @@ class DeprecationTest < ActiveSupport::TestCase
assert_match(/foo=nil/, @b)
end
- def test_abort_behaviour
- ActiveSupport::Deprecation.behavior = :abort
+ def test_raise_behaviour
+ ActiveSupport::Deprecation.behavior = :raise
message = 'Revise this deprecated stuff now!'
callstack = %w(foo bar baz)
@@ -110,7 +110,7 @@ class DeprecationTest < ActiveSupport::TestCase
assert_equal message, e.message
assert_equal callstack, e.backtrace
else
- flunk 'the :abort deprecation behaviour should raise the expected exception'
+ flunk 'the :raise deprecation behaviour should raise the expected exception'
end
end