mox
mox copied to clipboard
Mocks and explicit contracts in Elixir
I just found out the hard way that it doesn't seem to work to mock a behaviour with `@macrocallback` (I wanted a mock for `Spandex.Tracer`). Would it be possible/easy to...
Similar to comments in Issue #32, there are certain cases when we want to assert that a mocked function is never called (or is not over-called) but where the `expect`ed...
In the case where: - You set the expectation in the test process - A task (with proper `$callers`) is started from the test process - The test process finishes...
It's pretty cool that you can add expectations over time, like this: ``` expect(UserAPI, :get_user, 1, fn 123 -> {:ok, %{id: 123} end) expect(UserAPI, :get_user, 1, fn 456 -> {:ok,...