Skip to content
This repository
Browse code

Remove unused test code.

ActionController::RoutingError are raised in router execution time and can not be
rescued in a controller.
  • Loading branch information...
commit 4b85acba43da7c1354b3b13b599b147a0e31c327 1 parent 86c640a
Rafael Mendonça França authored April 16, 2012

Showing 1 changed file with 0 additions and 5 deletions. Show diff stats Hide diff stats

  1. 5  actionpack/test/controller/rescue_test.rb
5  actionpack/test/controller/rescue_test.rb
@@ -60,11 +60,6 @@ class ResourceUnavailableToRescueAsString < StandardError
60 60
     render :text => exception.message
61 61
   end
62 62
 
63  
-  # This is a Dispatcher exception and should be in ApplicationController.
64  
-  rescue_from ActionController::RoutingError do
65  
-    render :text => 'no way'
66  
-  end
67  
-
68 63
   rescue_from ActionView::TemplateError do
69 64
     render :text => 'action_view templater error'
70 65
   end

0 notes on commit 4b85acb

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