Class: ActionController::TestSession

Inherits:
Rack::Session::Abstract::SessionHash
  • Object
show all
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

Constructor Details

#initialize(session = {}) ⇒ TestSession

Returns a new instance of TestSession.



208
209
210
211
212
# File 'actionpack/lib/action_controller/test_case.rb', line 208

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

Instance Method Details

#exists?Boolean

Returns:

  • (Boolean)


214
215
216
# File 'actionpack/lib/action_controller/test_case.rb', line 214

def exists?
  true
end