mox icon indicating copy to clipboard operation
mox copied to clipboard

Mocks and explicit contracts in Elixir

Results 5 mox issues
Sort by recently updated
recently updated
newest added

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...

Kind: Enhancement

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,...

Kind: Enhancement

Hello! After updating :mox from 1.1.0 to 1.2.0, we started encountering the following (blinking) errors in our CI tests. Downgrading back to 1.1.0 resolved the issue. Could you please take...

Kind: Bug