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.



172
173
174
# File 'lib/action_controller/test_process.rb', line 172

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

Instance Method Details

#[](key) ⇒ Object



176
177
178
# File 'lib/action_controller/test_process.rb', line 176

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

#[]=(key, value) ⇒ Object



180
181
182
# File 'lib/action_controller/test_process.rb', line 180

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

#closeObject



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

def close() end

#deleteObject



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

def delete() @attributes = {} end

#session_idObject



184
185
186
# File 'lib/action_controller/test_process.rb', line 184

def session_id
  ""
end

#updateObject



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

def update() end