class Session
Ruby on Rails 2.2.3
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. Becase 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#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::Assertions (2)
- # clean_backtrace
- self. included
From ActionController::TestProcess (16)
- # assigns
- # build_request_uri
- # cookies
- # find_all_tag
- # find_tag
- # fixture_file_upload
- # flash
- # html_document
- # method_missing
- # process
- # redirect_to_url
- # session
- # with_routing
- # xhr
- # xml_http_request
- self. included
From Object (32)
- # acts_like?
- # app
- # blank?
- # class_eval
- # create
- # create_fixtures
- # duplicable?
- # edit
- # find_cmd
- # helper
- # index
- # instance_exec
- # instance_variable_defined?
- # instance_variable_names
- # message
- # metaclass
- # new_session
- # present?
- # reload!
- # returning
- # start_debugger
- # tail
- # to_json
- # to_param
- # to_query
- # unescape
- # update
- # with_options
- self. blank_slate_method_added
- self. find_hidden_method
- self. lookup_missing_generator
- self. method_added
From ActionController::Caching (3)
- # cache
- self. cache_configured?
- self. cache_store=
From ActionController::Cookies (2)
From ActionController::Flash (1)
- self. included
From ActionController::RecordIdentifier (5)
From ActionController::Rescue (7)
From ActionController::Streaming (2)
From ActionController::Translation (4)
From ActiveRecord::Callbacks (14)
From ActiveRecord::Dirty (4)
From ActiveRecord::Locking::Pessimistic (1)
- # lock!
From ActiveRecord::NamedScope (1)
- self. included
From ActiveRecord::Transactions (4)
From ActiveRecord::Validations (7)
From ActiveRecord::NamedScope::ClassMethods (2)
- # named_scope
- # scopes
From ActiveRecord::Validations::ClassMethods (13)
From ActiveSupport::Memoizable (1)
- # memoize