aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-12-17 08:29:21 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-12-17 08:29:21 +0000
commit7d49da95a95bcdf23682665be8775252e68a8370 (patch)
tree4e9b913dac44cba19aea3fed5e5bfc6af97258da
parent8a73d4fe6f2e22f0f9c6a99305357b00bf1ba86f (diff)
downloadrails-7d49da95a95bcdf23682665be8775252e68a8370.tar.gz
rails-7d49da95a95bcdf23682665be8775252e68a8370.tar.bz2
rails-7d49da95a95bcdf23682665be8775252e68a8370.zip
Another test that the deprecation spout is plugged.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--actionpack/test/controller/deprecation/deprecated_base_methods_test.rb11
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