diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-08-05 15:44:23 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-09-05 13:44:36 +0200 |
commit | b3eb26a161acb23781e55fc6c37b948f160cd9b5 (patch) | |
tree | 3c8e43a17dc5fe06eb3b4552d04d479863161fb5 /actionpack/test/abstract_unit.rb | |
parent | 91fec0d24d50d3b3e90c48b2501ca913544781cc (diff) | |
download | rails-b3eb26a161acb23781e55fc6c37b948f160cd9b5.tar.gz rails-b3eb26a161acb23781e55fc6c37b948f160cd9b5.tar.bz2 rails-b3eb26a161acb23781e55fc6c37b948f160cd9b5.zip |
Removed deprecated RouteSet API, still many tests fail
Diffstat (limited to 'actionpack/test/abstract_unit.rb')
-rw-r--r-- | actionpack/test/abstract_unit.rb | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb index 869842fc9c..7080a87f42 100644 --- a/actionpack/test/abstract_unit.rb +++ b/actionpack/test/abstract_unit.rb @@ -49,14 +49,6 @@ require 'pp' # require 'pp' early to prevent hidden_methods from not picking up module Rails end -# Monkey patch the old routes initialization to be silenced. -class ActionDispatch::Routing::DeprecatedMapper - def initialize_with_silencer(*args) - ActiveSupport::Deprecation.silence { initialize_without_silencer(*args) } - end - alias_method_chain :initialize, :silencer -end - ActiveSupport::Dependencies.hook! # Show backtraces for deprecated behavior for quicker cleanup. @@ -128,14 +120,12 @@ module ActiveSupport # Hold off drawing routes until all the possible controller classes # have been loaded. setup_once do - SharedTestRoutes.draw do |map| - # FIXME: match ':controller(/:action(/:id))' - map.connect ':controller/:action/:id' + SharedTestRoutes.draw do + match ':controller(/:action)' end - ActionController::IntegrationTest.app.routes.draw do |map| - # FIXME: match ':controller(/:action(/:id))' - map.connect ':controller/:action/:id' + ActionController::IntegrationTest.app.routes.draw do + match ':controller(/:action)' end end end |