From 85903d1b08963c1ac872106c3c727ff5468559a2 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 10 Jul 2015 11:51:53 -0700 Subject: Remove useless conditional PATH_INFO is already set, so this branch will never execute. --- actionpack/lib/action_controller/test_case.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 26ddd895b7..6965794657 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -632,18 +632,6 @@ module ActionController end def build_request_uri(controller_class_name, action, parameters) - unless @request.env["PATH_INFO"] - options = @controller.respond_to?(:url_options) ? @controller.__send__(:url_options).merge(parameters) : parameters - options.update( - :controller => controller_class_name, - :action => action, - :relative_url_root => nil, - :_recall => @request.path_parameters) - - url, = @routes.path_for(options).split("?", 2) - - @request.env["PATH_INFO"] = url - end @request.env["SCRIPT_NAME"] ||= @controller.config.relative_url_root end -- cgit v1.2.3