We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
See https://github.com/teamon/tesla/issues/195
defmodule ApiTest do use ExUnit.Case setup do Tesla.Mock.mock fn %{method: :get} = env -> send self(), {:this_is_request, env} # send request env to self %Tesla.Env{} end :ok end test "issue some request here" do Api.some_call() assert_receive {:this_is_request, %{url: "/some"}} end end