Class: ActionController::TestSession

Inherits:
Rack::Session::Abstract::SessionHash
  • Object
show all
Defined in:
lib/action_controller/test_case.rb

Overview

:nodoc:

Constant Summary collapse

DEFAULT_OPTIONS =
Rack::Session::Abstract::ID::DEFAULT_OPTIONS

Instance Method Summary collapse

Constructor Details

#initialize(session = {}) ⇒ TestSession


224
225
226
227
228
# File 'lib/action_controller/test_case.rb', line 224

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

Instance Method Details

#exists?Boolean


230
231
232
# File 'lib/action_controller/test_case.rb', line 230

def exists?
  true
end