Flowdock
method

build_request_uri

Importance_0
build_request_uri(action, parameters) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/test_case.rb, line 439
      def build_request_uri(action, parameters)
        unless @request.env["PATH_INFO"]
          options = @controller.__send__(:url_options).merge(parameters)
          options.update(
            :only_path => true,
            :action => action,
            :relative_url_root => nil,
            :_path_segments => @request.symbolized_path_parameters)

          url, query_string = @routes.url_for(options).split("?", 2)

          @request.env["SCRIPT_NAME"] = @controller.config.relative_url_root
          @request.env["PATH_INFO"] = url
          @request.env["QUERY_STRING"] = query_string || ""
        end
      end
Register or log in to add new notes.