123456789_123456789_123456789_123456789_123456789_

Module: ActionController::Testing

Relationships & Source Files
Namespace Children
Modules:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Defined in: actionpack/lib/action_controller/metal/testing.rb

Class Method Summary

Instance Attribute Summary

RackDelegation - Included

Instance Method Summary

Instance Attribute Details

#headers=(new_headers) (writeonly)

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

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/testing.rb', line 8

def headers=(new_headers)
  @_response ||= ActionDispatch::Response.new
  @_response.headers.replace(new_headers)
end