Class: ActionController::TestResponse
- Inherits:
-
ActionDispatch::TestResponse
- Object
- ActionDispatch::Response
- ActionDispatch::TestResponse
- ActionController::TestResponse
- Defined in:
- lib/action_controller/test_case.rb
Constant Summary
Constants inherited from ActionDispatch::Response
ActionDispatch::Response::CONTENT_TYPE, ActionDispatch::Response::EMPTY
Instance Attribute Summary
Attributes inherited from ActionDispatch::Response
#charset, #content_type, #header, #request, #sending_file, #status
Attributes included from ActionDispatch::Http::Cache::Response
Instance Method Summary collapse
Methods inherited from ActionDispatch::TestResponse
Methods inherited from ActionDispatch::Response
#body, #body=, #body_parts, #close, #code, #cookies, #delete_cookie, #initialize, #location, #location=, #message, #respond_to?, #response_code, #set_cookie, #to_a, #to_path
Methods included from ActionDispatch::Http::Cache::Response
#last_modified, #last_modified=, #last_modified?
Constructor Details
This class inherits a constructor from ActionDispatch::Response
Instance Method Details
#recycle! ⇒ Object
193 194 195 196 197 198 199 200 201 202 |
# File 'lib/action_controller/test_case.rb', line 193 def recycle! @status = 200 @header = {} @writer = lambda { |x| @body << x } @block = nil @length = 0 @body = [] @charset = @content_type = nil @request = @template = nil end |