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.



227
228
229
# File 'lib/action_controller/test_process.rb', line 227

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

Instance Method Details

#[](key) ⇒ Object



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

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

#[]=(key, value) ⇒ Object



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

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

#closeObject



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

def close() end

#deleteObject



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

def delete() @attributes = {} end

#session_idObject



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

def session_id
  ""
end

#updateObject



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

def update() end