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
226 227 228 229 230 231 232 233 234 235 |
# File 'lib/action_controller/test_case.rb', line 226 def recycle! @status = 200 @header = {} @writer = lambda { |x| @body << x } @block = nil @length = 0 @body = [] @charset = @content_type = nil @request = @template = nil end |