Skip to content
Browse files

Merge [5730] from trunk.

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-pre-release@5731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent d5ca9a5 commit 0ae462a82da5487a59404acfecbe00918baa7c99 @jeremy jeremy committed
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 0ae462a

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