Class: Warden::Test::Helpers::Session
- Inherits:
-
Object
- Object
- Warden::Test::Helpers::Session
- Defined in:
- lib/warden/test/helpers.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
Instance Method Summary collapse
- #call(e) ⇒ Object
-
#initialize(app, configs = {}) ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize(app, configs = {}) ⇒ Session
Returns a new instance of Session.
80 81 82 |
# File 'lib/warden/test/helpers.rb', line 80 def initialize(app,configs = {}) @app = app end |
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app.
79 80 81 |
# File 'lib/warden/test/helpers.rb', line 79 def app @app end |
Instance Method Details
#call(e) ⇒ Object
84 85 86 87 |
# File 'lib/warden/test/helpers.rb', line 84 def call(e) e['rack.session'] ||= {} @app.call(e) end |