diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-08-04 18:20:07 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-08-04 18:20:07 -0700 |
commit | 3300fdedc748993b378288c6cbc3113885c955ed (patch) | |
tree | d514e1247a0958df6e360fe41e15a51e4a1ccaf6 /actionpack/lib/action_controller | |
parent | caadbd85c1a50ff8bc50d08aa01c046278a9eb1c (diff) | |
download | rails-3300fdedc748993b378288c6cbc3113885c955ed.tar.gz rails-3300fdedc748993b378288c6cbc3113885c955ed.tar.bz2 rails-3300fdedc748993b378288c6cbc3113885c955ed.zip |
avoid testing only_path
we know that this call only wants the path returned, so lets call a
method that returns the path.
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 71cb224f22..9d0ec6f4de 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -695,12 +695,11 @@ module ActionController unless @request.env["PATH_INFO"] options = @controller.respond_to?(:url_options) ? @controller.__send__(:url_options).merge(parameters) : parameters options.update( - :only_path => true, :action => action, :relative_url_root => nil, :_recall => @request.path_parameters) - url, query_string = @routes.url_for(options).split("?", 2) + url, query_string = @routes.path_for(options).split("?", 2) @request.env["SCRIPT_NAME"] = @controller.config.relative_url_root @request.env["PATH_INFO"] = url |