diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-12-08 22:19:00 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-12-08 22:19:00 +0000 |
commit | a454dcf012e13f24c6c74098f9fd4efd72e8aadc (patch) | |
tree | 00664b888dd1ef988abc81877a01d7a69e7cb1d6 /actionpack/test | |
parent | 906bd93f4fdbad429cca8a0cfa7f32ec1eb7960a (diff) | |
download | rails-a454dcf012e13f24c6c74098f9fd4efd72e8aadc.tar.gz rails-a454dcf012e13f24c6c74098f9fd4efd72e8aadc.tar.bz2 rails-a454dcf012e13f24c6c74098f9fd4efd72e8aadc.zip |
Unrescued ActiveRecord::RecordNotFound responds with 404 instead of 500.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5706 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/rescue_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/controller/rescue_test.rb b/actionpack/test/controller/rescue_test.rb index c49575cad3..c18de75c05 100644 --- a/actionpack/test/controller/rescue_test.rb +++ b/actionpack/test/controller/rescue_test.rb @@ -143,6 +143,7 @@ class RescueTest < Test::Unit::TestCase assert_equal :not_found, responses[ActionController::RoutingError.name] assert_equal :not_found, responses[ActionController::UnknownAction.name] + assert_equal :not_found, responses['ActiveRecord::RecordNotFound'] end def test_rescue_templates |