diff options
author | akihiro17 <coolwizard11@gmail.com> | 2015-09-29 13:25:04 +0900 |
---|---|---|
committer | akihiro17 <coolwizard11@gmail.com> | 2015-09-29 13:43:11 +0900 |
commit | 388124e411793b8c6d014569bd07264192f369a2 (patch) | |
tree | 06b2fac06822e557972f620110e581158ac04a73 /actionpack/test/journey | |
parent | e229b432f97e09ff97e1c3c6e7a549b0c0269181 (diff) | |
download | rails-388124e411793b8c6d014569bd07264192f369a2.tar.gz rails-388124e411793b8c6d014569bd07264192f369a2.tar.bz2 rails-388124e411793b8c6d014569bd07264192f369a2.zip |
Remove TestRouter#add_routes
Now, we use the mapper to build the routing table
related to https://github.com/rails/rails/commit/703275ba70efbefb3358052b6ba750443eff1a28
Diffstat (limited to 'actionpack/test/journey')
-rw-r--r-- | actionpack/test/journey/router_test.rb | 11 |
1 files changed, 0 insertions, 11 deletions
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 |