Class: ActionController::TestResponse
- Inherits:
-
ActionDispatch::TestResponse
- Object
- ActionDispatch::Response
- ActionDispatch::TestResponse
- ActionController::TestResponse
- Defined in:
- actionpack/lib/action_controller/test_case.rb
Constant Summary
Constants inherited from ActionDispatch::Response
ActionDispatch::Response::CONTENT_TYPE, ActionDispatch::Response::EMPTY, ActionDispatch::Response::LOCATION, ActionDispatch::Response::SET_COOKIE
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
205 206 207 208 209 210 211 212 213 214 |
# File 'actionpack/lib/action_controller/test_case.rb', line 205 def recycle! @status = 200 @header = {} @writer = lambda { |x| @body << x } @block = nil @length = 0 @body = [] @charset = @content_type = nil @request = @template = nil end |