Namespace
Methods
H
P
R
Included Modules
Instance Public methods
headers=(new_headers)

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

# File actionpack/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)

TODO: Clean this up

# File actionpack/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!()
# File actionpack/lib/action_controller/metal/testing.rb, line 7
def recycle!
  @_url_options = nil
end