ivar v0.10.1 Ivar.Testing.TestAdapter

TestAdapter is a testing utility that is designed to make testing Ivar simplier by replacing http requests with a callback that can be used to assert expected values for the request.

Summary

Functions

This function executes a given Ivar request and runs the function specified by the :handler option if this has been provided

Functions

execute(request)
execute(map) :: {:ok, map} | {:error, binary | atom}

This function executes a given Ivar request and runs the function specified by the :handler option if this has been provided.

Args

  • request - the map containing the request options to send, usually created via Ivar.new/2