method
new
rails latest stable - Class:
ActionController::TestSession
new(session = {}, id = Rack::Session::SessionId.new(SecureRandom.hex(16)))public
No documentation available.
# File actionpack/lib/action_controller/test_case.rb, line 188
def initialize(session = {}, id = Rack::Session::SessionId.new(SecureRandom.hex(16)))
super(nil, nil)
@id = id
@data = stringify_keys(session)
@loaded = true
@initially_empty = @data.empty?
end