Class | ActionDispatch::Integration::Session |
In: |
lib/action_dispatch/testing/integration.rb
|
Parent: | Object |
An instance of this class represents a set of requests and responses performed sequentially by a test process. Because you can instantiate multiple sessions and run them side-by-side, you can also mimic (to some limited extent) multiple simultaneous users interacting with your system.
Typically, you will instantiate a new session using IntegrationTest#open_session, rather than instantiating Integration::Session directly.
DEFAULT_HOST | = | "www.example.com" |
accept | [RW] | The Accept header to send. |
controller | [R] | A reference to the controller instance used by the last request. |
host | [W] | |
remote_addr | [RW] | The remote_addr used in the last request. |
request | [R] | A reference to the request instance used by the last request. |
request_count | [RW] | A running counter of the number of requests processed. |
response | [R] | A reference to the response instance used by the last request. |
A map of the cookies returned by the last response, and which will be sent with the next request.
Specify whether or not the session should mimic a secure HTTPS request.
session.https! session.https!(false)