I’m having issues testing that a plug is properly halting the pipeline when an external service returns an error. Here's the test, which ensures we call our plug under test:
defmodule HaltTestApp do
use Plug.Router
plug :match
plug ValidateExternalService