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.



197
198
199
# File 'lib/action_controller/test_process.rb', line 197

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

Instance Method Details

#[](key) ⇒ Object



201
202
203
# File 'lib/action_controller/test_process.rb', line 201

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

#[]=(key, value) ⇒ Object



205
206
207
# File 'lib/action_controller/test_process.rb', line 205

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

#closeObject



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

def close() end

#deleteObject



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

def delete() @attributes = {} end

#session_idObject



209
210
211
# File 'lib/action_controller/test_process.rb', line 209

def session_id
  ""
end

#updateObject



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

def update() end