Let’s say I have a helper function called
not_found/1, which looks something like:
def not_found(conn) do conn |> put_status(404) |> put_view(MyApplication.ErrorView) |> render(:"404") |> halt() end
This is a very trivial example to show the idea. Now I wonder how to test such things in isolation? Like how would setup / assertions need to look like.