method
new
new(session = {}, id = Rack::Session::SessionId.new(SecureRandom.hex(16)))
public
Hide source
# 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