diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-24 11:28:05 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-24 11:28:05 +0100 |
commit | 58f69ba085542bf99ae6cdd34ddf62cb847aceed (patch) | |
tree | 9e92af0ce747d982cb40c7f2353a0c4134753385 /actionpack/test | |
parent | f32247cb3eb1a444e40a66c1ad6147fdac4392c7 (diff) | |
download | rails-58f69ba085542bf99ae6cdd34ddf62cb847aceed.tar.gz rails-58f69ba085542bf99ae6cdd34ddf62cb847aceed.tar.bz2 rails-58f69ba085542bf99ae6cdd34ddf62cb847aceed.zip |
Remove Rescue middleware that was never used by Rails.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/rescue_test.rb | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/actionpack/test/controller/rescue_test.rb b/actionpack/test/controller/rescue_test.rb index c445285538..86d6737cbb 100644 --- a/actionpack/test/controller/rescue_test.rb +++ b/actionpack/test/controller/rescue_test.rb @@ -338,23 +338,8 @@ class RescueTest < ActionDispatch::IntegrationTest end end - test 'rescue routing exceptions' do - raiser = proc { |env| raise ActionController::RoutingError, "Did not handle the request" } - @app = ActionDispatch::Rescue.new(raiser) do - rescue_from ActionController::RoutingError, lambda { |env| [200, {"Content-Type" => "text/html"}, ["Gotcha!"]] } - end - - get '/b00m' - assert_equal "Gotcha!", response.body - end - - test 'unrescued exception' do - raiser = proc { |env| raise ActionController::RoutingError, "Did not handle the request" } - @app = ActionDispatch::Rescue.new(raiser) - assert_raise(ActionController::RoutingError) { get '/b00m' } - end - private + def with_test_routing with_routing do |set| set.draw do |