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, 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
209 210 211 212 213 214 215 216 217 218 |
# File 'lib/action_controller/test_case.rb', line 209 def recycle! @status = 200 @header = {} @writer = lambda { |x| @body << x } @block = nil @length = 0 @body = [] @charset = @content_type = nil @request = @template = nil end |