Sharing Phoenix Test Code

This,

Phoenix.ConnTest.post

is a macro, which added some complexity when I pulled it out of the test file, and into a shared library.

So I used, this function instead:

Phoenix.ConnTest.dispatch

which I can import from anywhere, with no assumptions required…

1 Like