diff options
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/deprecation/deprecated_base_methods_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb b/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb index 3d5f6606bc..627e6d2627 100644 --- a/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb +++ b/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb @@ -14,6 +14,10 @@ class DeprecatedBaseMethodsTest < Test::Unit::TestCase "http://example.com/#{greeting}" end + def raises_name_error + this_method_doesnt_exist + end + def rescue_action(e) raise e end end @@ -40,4 +44,11 @@ class DeprecatedBaseMethodsTest < Test::Unit::TestCase assert_equal "Living in a nested world", @response.body end + + def test_assertion_failed_error_doesnt_spout_deprecation_warnings + get :raises_name_error + rescue => e + error = Test::Unit::Error.new('testing ur doodz', e) + assert_not_deprecated { error.message } + end end |