Class: Warden::Test::Helpers::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/warden/test/helpers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#appObject

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