class Session
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
An integration Session instance represents a set of requests and responses performed sequentially by some virtual user. 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.
Inherits from
Namespace
Classes
Includes
Attributes
- ActionController::Integration::Session#accept
- ActionController::Integration::Session#application
- ActionController::Integration::Session#body
- ActionController::Integration::Session#controller
- ActionController::Integration::Session#cookies
- ActionController::Integration::Session#headers
- ActionController::Integration::Session#host
- ActionController::Integration::Session#path
- ActionController::Integration::Session#remote_addr
- ActionController::Integration::Session#request
- ActionController::Integration::Session#request_count
- ActionController::Integration::Session#response
- ActionController::Integration::Session#status
- ActionController::Integration::Session#status_message
Methods (defined here)
- # delete
- # delete_via_redirect
- # follow_redirect!
- # get
- # get_via_redirect
- # head
- # host!
- # https!
- # https?
- # post
- # post_via_redirect
- # put
- # put_via_redirect
- # redirect?
- # request_via_redirect
- # reset!
- # url_for
- # xhr
- # xml_http_request
- self. new
Private methods
(8)
Implementation detail — not part of the public API.
Methods (inherited)
From ActionController::TestProcess (21)
- # assigns
- # build_request_uri
- # cookies
- # delete
- # find_all_tag
- # find_tag
- # fixture_file_upload
- # flash
- # get
- # head
- # html_document
- # method_missing
- # post
- # process
- # put
- # redirect_to_url
- # session
- # with_routing
- # xhr
- # xml_http_request
- self. included
From Object (37)
- # acts_like?
- # app
- # as_json
- # blank?
- # class_eval
- # create
- # create_fixtures
- # destroy
- # duplicable?
- # edit
- # find_cmd
- # helper
- # html_safe?
- # index
- # instance_exec
- # instance_variable_defined?
- # instance_variable_names
- # message
- # metaclass
- # new_session
- # presence
- # present?
- # reload!
- # returning
- # singleton_class
- # tap
- # to_json
- # to_param
- # to_query
- # try
- # unescape
- # update
- # with_options
- self. blank_slate_method_added
- self. find_hidden_method
- self. lookup_missing_generator
- self. method_added