Sha256: ed481762381882f3e51925361df9a6ff80d932f18fda40d654785b32116a9a17
Contents?: true
Size: 484 Bytes
Versions: 16
Compression:
Stored size: 484 Bytes
Contents
module GovukPersonalisation module TestHelpers module Requests # Set the `GOVUK-Account-Session` request header. # # @param session_id [String] the session identifier # @param flash [Array<String>, nil] the flash messages def mock_logged_in_session(session_id = "placeholder", flash = nil) request.headers["GOVUK-Account-Session"] = GovukPersonalisation::Flash.encode_session(session_id, flash) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems