Class: ActionController::TestSession

Inherits:
ActionDispatch::Session::AbstractStore::SessionHash show all
Defined in:
lib/action_controller/test_case.rb

Overview

:nodoc:

Constant Summary collapse

DEFAULT_OPTIONS =
ActionDispatch::Session::AbstractStore::DEFAULT_OPTIONS

Instance Method Summary collapse

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.



200
201
202
203
# File 'lib/action_controller/test_case.rb', line 200

def initialize(session = {})
  replace(session.stringify_keys)
  @loaded = true
end

Instance Method Details

#exists?Boolean

Returns:

  • (Boolean)


205
# File 'lib/action_controller/test_case.rb', line 205

def exists?; true; end