A stub http server and request body recorder.
$ rebar3 compile
In rebar.config deps, have:
{stubby, {git, "git://github.com/yowcow/stubby", {branch, "master}}}
In testing, e.g., common tests, have:
init_per_suite(Config) ->
Url = stubby:start(),
[{url, Url} | Config].
end_per_suite(_) ->
ok = stubby:stop().
(See src/stubby.erl for more options starting up a server)
In a testcase, make a request to stubby url, then get the most recent request body with:
{ok, Body} = stubby:get_recent()