Skip to content
Browse files

Another test that the deprecation spout is plugged.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 8a73d4f commit 7d49da95a95bcdf23682665be8775252e68a8370 @jeremy jeremy committed Dec 17, 2006
Showing with 11 additions and 0 deletions.
  1. +11 −0 actionpack/test/controller/deprecation/deprecated_base_methods_test.rb
View
11 actionpack/test/controller/deprecation/deprecated_base_methods_test.rb
@@ -14,6 +14,10 @@ def home_url(greeting)
"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 @@ def test_deprecated_render_parameters
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

0 comments on commit 7d49da9

Please sign in to comment.
Something went wrong with that request. Please try again.