# module ActionController::Testing

### Public Instance Methods

headers=(new_headers) click to toggle source

TODO : Rewrite tests using controller.headers= to use Rack env

    # File lib/action_controller/metal/testing.rb, line 26
    def headers=(new_headers)
      @_response ||= ActionDispatch::Response.new
      @_response.headers.replace(new_headers)
    end

process_with_new_base_test(request, response) click to toggle source

TODO: Clean this up

    # File lib/action_controller/metal/testing.rb, line 13
    def process_with_new_base_test(request, response)
      @_request = request
      @_response = response
      @_response.request = request
      ret = process(request.parameters[:action])
      if cookies = @_request.env['action_dispatch.cookies']
        cookies.write(@_response)
      end
      @_response.prepare!
      ret
    end

recycle!() click to toggle source

    # File lib/action_controller/metal/testing.rb, line 7
    def recycle!
      @_url_options = nil
    end