diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-10 23:45:04 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-10 23:45:04 -0600 |
commit | 2f90d700498294a9a4da0baa5317c0e6feaaf176 (patch) | |
tree | 7dd25f66023ae29027ebf24bd8c82f5db08d6140 /actionpack/lib/action_dispatch/testing/assertions | |
parent | d1191507bc8ffa4f7fe59b1cfb03dfbf6b73a798 (diff) | |
download | rails-2f90d700498294a9a4da0baa5317c0e6feaaf176.tar.gz rails-2f90d700498294a9a4da0baa5317c0e6feaaf176.tar.bz2 rails-2f90d700498294a9a4da0baa5317c0e6feaaf176.zip |
Kill RouteSet#recognize
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/assertions')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/routing.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/routing.rb b/actionpack/lib/action_dispatch/testing/assertions/routing.rb index e6d6b5a3ef..4bc5275e04 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/routing.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/routing.rb @@ -134,9 +134,11 @@ module ActionDispatch # Assume given controller request = ActionController::TestRequest.new request.env["REQUEST_METHOD"] = request_method.to_s.upcase if request_method - request.path = path + request.path = path + + params = ActionController::Routing::Routes.recognize_path(path, { :method => request.method }) + request.path_parameters = params.with_indifferent_access - ActionController::Routing::Routes.recognize(request) request end end |