Class: ActionController::TestSession
- Inherits:
-
Rack::Session::Abstract::SessionHash
- Object
- Rack::Session::Abstract::SessionHash
- ActionController::TestSession
- Defined in:
- actionpack/lib/action_controller/test_case.rb
Overview
:nodoc:
Constant Summary collapse
- DEFAULT_OPTIONS =
Rack::Session::Abstract::ID::DEFAULT_OPTIONS
Instance Method Summary collapse
- #exists? ⇒ Boolean
-
#initialize(session = {}) ⇒ TestSession
constructor
A new instance of TestSession.
Constructor Details
#initialize(session = {}) ⇒ TestSession
Returns a new instance of TestSession.
220 221 222 223 224 |
# File 'actionpack/lib/action_controller/test_case.rb', line 220 def initialize(session = {}) super(nil, nil) replace(session.stringify_keys) @loaded = true end |
Instance Method Details
#exists? ⇒ Boolean
226 227 228 |
# File 'actionpack/lib/action_controller/test_case.rb', line 226 def exists? true end |