Class: ActionController::TestSession
- Inherits:
-
ActionDispatch::Session::AbstractStore::SessionHash
- Object
- Hash
- ActionDispatch::Session::AbstractStore::SessionHash
- ActionController::TestSession
- Defined in:
- lib/action_controller/test_case.rb
Overview
:nodoc:
Constant Summary collapse
- DEFAULT_OPTIONS =
ActionDispatch::Session::AbstractStore::DEFAULT_OPTIONS
Instance Method Summary collapse
- #exists? ⇒ Boolean
-
#initialize(session = {}) ⇒ TestSession
constructor
A new instance of TestSession.
Methods inherited from ActionDispatch::Session::AbstractStore::SessionHash
#[], #[]=, #clear, #delete, #destroy, #has_key?, #inspect, #loaded?, #to_hash, #update
Constructor Details
#initialize(session = {}) ⇒ TestSession
Returns a new instance of TestSession.
193 194 195 196 |
# File 'lib/action_controller/test_case.rb', line 193 def initialize(session = {}) replace(session.stringify_keys) @loaded = true end |
Instance Method Details
#exists? ⇒ Boolean
198 |
# File 'lib/action_controller/test_case.rb', line 198 def exists?; true; end |