Class: ActionController::TestSession

Inherits:
Object
  • Object
show all
Defined in:
lib/action_controller/test_process.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ TestSession

Returns a new instance of TestSession.


275
276
277
# File 'lib/action_controller/test_process.rb', line 275

def initialize(attributes = {})
  @attributes = attributes
end

Instance Method Details

#[](key) ⇒ Object


279
280
281
# File 'lib/action_controller/test_process.rb', line 279

def [](key)
  @attributes[key]
end

#[]=(key, value) ⇒ Object


283
284
285
# File 'lib/action_controller/test_process.rb', line 283

def []=(key, value)
  @attributes[key] = value
end

#closeObject


292
# File 'lib/action_controller/test_process.rb', line 292

def close() end

#deleteObject


293
# File 'lib/action_controller/test_process.rb', line 293

def delete() @attributes = {} end

#session_idObject


287
288
289
# File 'lib/action_controller/test_process.rb', line 287

def session_id
  ""
end

#updateObject


291
# File 'lib/action_controller/test_process.rb', line 291

def update() end