Module: GovukPersonalisation::TestHelpers::Features
- Defined in:
- lib/govuk_personalisation/test_helpers/features.rb
Instance Method Summary collapse
-
#mock_logged_in_session(session_id = "placeholder", flash = nil) ⇒ Object
Set the ‘GOVUK-Account-Session` request header in the page driver.
Instance Method Details
#mock_logged_in_session(session_id = "placeholder", flash = nil) ⇒ Object
Set the ‘GOVUK-Account-Session` request header in the page driver.
9 10 11 |
# File 'lib/govuk_personalisation/test_helpers/features.rb', line 9 def mock_logged_in_session(session_id = "placeholder", flash = nil) page.driver.header("GOVUK-Account-Session", GovukPersonalisation::Flash.encode_session(session_id, flash)) end |