Class: ActionController::LiveTestResponse

Inherits:
ActionController::Live::Response show all
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::NO_CONTENT_CODES, ActionDispatch::Response::SET_COOKIE

Constants included from ActionDispatch::Http::FilterRedirect

ActionDispatch::Http::FilterRedirect::FILTERED

Instance Attribute Summary

Attributes inherited from ActionDispatch::Response

#charset, #content_type, #header, #request, #sending_file, #status, #stream

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

#cache_control, #etag

Instance Method Summary collapse

Methods inherited from ActionDispatch::Response

#_status_code, #await_commit, #await_sent, #body=, #body_parts, #close, #code, #commit!, #committed?, #cookies, #delete_cookie, #initialize, #location, #location=, #message, #respond_to?, #response_code, #sending!, #sending?, #sent!, #sent?, #set_cookie, #to_a, #to_path

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

#date, #date=, #date?, #last_modified, #last_modified=, #last_modified?

Methods included from ActionDispatch::Http::FilterRedirect

#filtered_location

Constructor Details

This class inherits a constructor from ActionDispatch::Response

Instance Method Details

#bodyObject


267
268
269
# File 'actionpack/lib/action_controller/test_case.rb', line 267

def body
  @body ||= super
end

#recycle!Object


262
263
264
265
# File 'actionpack/lib/action_controller/test_case.rb', line 262

def recycle!
  @body = nil
  initialize
end