Class: ActionController::TestSession
- Defined in:
- lib/action_controller/test_process.rb
Overview
:nodoc:
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
- #close ⇒ Object
- #delete ⇒ Object
-
#initialize(attributes = {}) ⇒ TestSession
constructor
A new instance of TestSession.
- #session_id ⇒ Object
- #update ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ TestSession
Returns a new instance of TestSession.
168 169 170 |
# File 'lib/action_controller/test_process.rb', line 168 def initialize(attributes = {}) @attributes = attributes end |
Instance Method Details
#[](key) ⇒ Object
172 173 174 |
# File 'lib/action_controller/test_process.rb', line 172 def [](key) @attributes[key] end |
#[]=(key, value) ⇒ Object
176 177 178 |
# File 'lib/action_controller/test_process.rb', line 176 def []=(key, value) @attributes[key] = value end |
#close ⇒ Object
185 |
# File 'lib/action_controller/test_process.rb', line 185 def close() end |
#delete ⇒ Object
186 |
# File 'lib/action_controller/test_process.rb', line 186 def delete() @attributes = {} end |
#session_id ⇒ Object
180 181 182 |
# File 'lib/action_controller/test_process.rb', line 180 def session_id "" end |
#update ⇒ Object
184 |
# File 'lib/action_controller/test_process.rb', line 184 def update() end |