I'm trying to test a method that receives a connection of type Plug.Conn but I don't find a way of initializing the connection with the request parameters with the Plug.Conn
API.
E.g:
test "put request params", %{conn: conn} do
# put %{"foo" => "bar"} into the connection params
assert conn.params == %{"foo" => "bar"}
end
Is there any way to set those parameters in the connection?