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.



188
189
190
# File 'lib/action_controller/test_process.rb', line 188

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

Instance Method Details

#[](key) ⇒ Object



192
193
194
# File 'lib/action_controller/test_process.rb', line 192

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

#[]=(key, value) ⇒ Object



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

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

#closeObject



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

def close() end

#deleteObject



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

def delete() @attributes = {} end

#session_idObject



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

def session_id
  ""
end

#updateObject



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

def update() end