Class: ActionController::TestResponse

Inherits:
ActionDispatch::TestResponse show all
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 included from ActionDispatch::TestResponse::DeprecatedHelpers

#template

Attributes inherited from ActionDispatch::Response

#blank, #charset, #content_type, #header, #request, #sending_file

Attributes included from ActionDispatch::Http::Cache::Response

#cache_control

Instance Method Summary collapse

Methods inherited from ActionDispatch::TestResponse

#client_error?, #error?, from_response, #missing?, #redirect?, #success?

Methods included from ActionDispatch::TestResponse::DeprecatedHelpers

#assigns, #binary_content, #flash, #has_flash?, #has_flash_object?, #has_flash_with_contents?, #has_session_object?, #has_template_object?, #layout, #redirect_url_match?, #redirected_to, #rendered, #session, #template_objects

Methods inherited from ActionDispatch::Response

#body, #body=, #body_parts, #code, #cookies, #each, #location, #location=, #message, #respond_to?, #response_code, #status=, #to_a, #to_path, #write

Methods included from ActionDispatch::Http::Cache::Response

#etag, #etag=, #etag?, #initialize, #last_modified, #last_modified=, #last_modified?

Methods included from ActionDispatch::Response::Setup

#initialize

Instance Method Details

#recycle!Object



187
188
189
190
191
192
193
194
195
196
# File 'lib/action_controller/test_case.rb', line 187

def recycle!
  @status = 200
  @header = {}
  @writer = lambda { |x| @body << x }
  @block = nil
  @length = 0
  @body = []
  @charset = @content_type = nil
  @request = @template = nil
end