setup_controller_request_and_response (ActionController::TestCase)

    # File lib/action_controller/test_case.rb, line 184
        def setup_controller_request_and_response
          @request = TestRequest.new
          @response = TestResponse.new

          if klass = self.class.controller_class
            @controller ||= klass.new rescue nil
          end

          if @controller
            @controller.request = @request
            @controller.params = {}
            @controller.send(:initialize_current_url)
          end
        end