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.



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

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

Instance Method Details

#[](key) ⇒ Object



234
235
236
# File 'lib/action_controller/test_process.rb', line 234

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

#[]=(key, value) ⇒ Object



238
239
240
# File 'lib/action_controller/test_process.rb', line 238

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

#closeObject



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

def close() end

#deleteObject



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

def delete() @attributes = {} end

#session_idObject



242
243
244
# File 'lib/action_controller/test_process.rb', line 242

def session_id
  ""
end

#updateObject



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

def update() end