Another approach to Testing Phoenix Controller + Plug setup
I came up with a way to test a Phoenix Controller’s plug
call without regular requests tests (conn tests). By digging a little deeper into Phoenix.Controller.Pipeline
& some minor meta-programming:
https://www.adiiyengar.com/blog/20210225/testing-phoenix-controller-plug-setup