Files
wanderer/test/unit/controllers
Guarzo ed686ee842 test(auth): give AuthController tests a session and flash
The SSO callback failure path calls put_flash/3, which requires the session and
flash plugs installed by the :browser pipeline. These tests built a bare
build_conn/0, so all six died with "flash not fetched, call fetch_flash/2"
before reaching the redirect they assert on.

This is a test setup defect, not a controller defect -- the controller
legitimately expects the standard browser pipeline. Fixed by routing the
affected cases through a browser_conn/0 helper that initialises a test session
and fetches flash, rather than weakening the controller or the assertions.
2026-08-02 00:06:39 +00:00
..