Class: ActionController::TestSession
- Inherits:
-
ActionDispatch::Session::AbstractStore::SessionHash
- Object
- Hash
- ActionDispatch::Session::AbstractStore::SessionHash
- ActionController::TestSession
- Defined in:
- actionpack/lib/action_controller/test_case.rb
Overview
:nodoc:
Constant Summary
Instance Method Summary (collapse)
- - (Boolean) exists?
-
- (TestSession) initialize(session = {})
constructor
A new instance of TestSession.
Methods inherited from ActionDispatch::Session::AbstractStore::SessionHash
#[], #[]=, #clear, #delete, #destroy, #has_key?, #inspect, #loaded?, #to_hash, #update
Methods inherited from Hash
#as_json, #assert_valid_keys, #deep_merge, #deep_merge!, #diff, #encode_json, #except, #except!, #extract!, #extractable_options?, from_xml, #reverse_merge, #reverse_merge!, #slice, #slice!, #stringify_keys, #stringify_keys!, #symbolize_keys, #symbolize_keys!, #to_param, #to_xml, #with_indifferent_access
Constructor Details
- (TestSession) initialize(session = {})
A new instance of TestSession
193 194 195 196 |
# File 'actionpack/lib/action_controller/test_case.rb', line 193 def initialize(session = {}) replace(session.stringify_keys) @loaded = true end |
Instance Method Details
- (Boolean) exists?
198 |
# File 'actionpack/lib/action_controller/test_case.rb', line 198 def exists?; true; end |