Flowdock
method

setup_controller_request_and_response

Importance_0
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActionController::TestCase::Behavior
setup_controller_request_and_response() public

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 582
      def setup_controller_request_and_response
        @request          = build_request
        @response         = build_response
        @response.request = @request

        @controller = nil unless defined? @controller

        if klass = self.class.controller_class
          unless @controller
            begin
              @controller = klass.new
            rescue
              warn "could not construct controller #{klass}" if $VERBOSE
            end
          end
        end

        if @controller
          @controller.request = @request
          @controller.params = {}
        end
      end
Register or log in to add new notes.