From 7d49da95a95bcdf23682665be8775252e68a8370 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sun, 17 Dec 2006 08:29:21 +0000 Subject: Another test that the deprecation spout is plugged. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../controller/deprecation/deprecated_base_methods_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'actionpack/test/controller/deprecation/deprecated_base_methods_test.rb') 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 -- cgit v1.2.3