From 388124e411793b8c6d014569bd07264192f369a2 Mon Sep 17 00:00:00 2001 From: akihiro17 Date: Tue, 29 Sep 2015 13:25:04 +0900 Subject: Remove TestRouter#add_routes Now, we use the mapper to build the routing table related to https://github.com/rails/rails/commit/703275ba70efbefb3358052b6ba750443eff1a28 --- actionpack/test/journey/router_test.rb | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'actionpack/test/journey') diff --git a/actionpack/test/journey/router_test.rb b/actionpack/test/journey/router_test.rb index 6a3af32946..15d51e5d6c 100644 --- a/actionpack/test/journey/router_test.rb +++ b/actionpack/test/journey/router_test.rb @@ -497,17 +497,6 @@ module ActionDispatch private - def add_routes router, paths, anchor = true - paths.each do |path| - if String === path - path = Path::Pattern.from_string path - else - path - end - add_route @app, path, {}, [], {}, {} - end - end - def rails_env env, klass = ActionDispatch::Request klass.new(rack_env(env)) end -- cgit v1.2.3