From 8b4eca09a5c321afd93211043b24aa6840837fd8 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 10 Jul 2015 11:49:18 -0700 Subject: always default the SCRIPT_NAME to whatever is on the controller --- actionpack/lib/action_controller/test_case.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index d92d18933a..6495e549e0 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -641,9 +641,9 @@ module ActionController url, = @routes.path_for(options).split("?", 2) - @request.env["SCRIPT_NAME"] = @controller.config.relative_url_root @request.env["PATH_INFO"] = url end + @request.env["SCRIPT_NAME"] ||= @controller.config.relative_url_root end def html_format?(parameters) -- cgit v1.2.3