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


254
255
256
# File 'lib/action_controller/test_process.rb', line 254

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

Instance Method Details

#[](key) ⇒ Object


258
259
260
# File 'lib/action_controller/test_process.rb', line 258

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

#[]=(key, value) ⇒ Object


262
263
264
# File 'lib/action_controller/test_process.rb', line 262

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

#closeObject


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

def close() end

#deleteObject


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

def delete() @attributes = {} end

#session_idObject


266
267
268
# File 'lib/action_controller/test_process.rb', line 266

def session_id
  ""
end

#updateObject


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

def update() end