Class: ActionController::TestResponse
- Inherits:
-
Response
- Object
- Rack::Response
- Response
- ActionController::TestResponse
- Includes:
- TestResponseBehavior
- Defined in:
- lib/action_controller/test_process.rb
Overview
Integration test methods such as ActionController::Integration::Session#get and ActionController::Integration::Session#post return objects of class TestResponse, which represent the HTTP response results of the requested controller actions.
See Response for more information on controller response objects.
Constant Summary
Constants inherited from Response
Instance Attribute Summary
Attributes inherited from Response
#assigns, #layout, #redirected_to, #redirected_to_method_params, #request, #session, #template
Attributes inherited from Rack::Response
#body, #header, #length, #status
Attributes included from Rack::Response::Helpers
Instance Method Summary collapse
Methods included from TestResponseBehavior
#binary_content, #client_error?, #code, #cookies, #error?, #flash, #has_flash?, #has_flash_object?, #has_flash_with_contents?, #has_session_object?, #has_template_object?, #message, #missing?, #redirect?, #redirect_url, #redirect_url_match?, #rendered, #response_code, #success?, #template_objects
Methods inherited from Response
#assign_default_content_type_and_charset!, #charset, #charset=, #content_type, #content_type=, #each, #etag, #etag=, #etag?, #initialize, #last_modified, #last_modified=, #last_modified?, #location, #location=, #prepare!, #redirect, #sending_file?, #set_cookie, #write
Methods inherited from Rack::Response
#[], #[]=, #close, #delete_cookie, #each, #empty?, #finish, #initialize, #set_cookie, #write
Methods included from Rack::Response::Helpers
#client_error?, #content_length, #content_type, #empty?, #forbidden?, #include?, #informational?, #invalid?, #location, #not_found?, #ok?, #redirect?, #redirection?, #server_error?, #successful?
Constructor Details
This class inherits a constructor from ActionController::Response
Instance Method Details
#recycle! ⇒ Object
281 282 283 284 |
# File 'lib/action_controller/test_process.rb', line 281 def recycle! headers.delete('ETag') headers.delete('Last-Modified') end |