Nimrod Wandera
Nimrod Wandera
### Current behaviour All within an exunit test context ```elixir with_mock(mock) = defmock_of RealModule do def is_age_one?(%{age: 1}) do {:ok, "age is one"} end def is_age_one?(%{age: age}) do {:error, "age...
` defmodule MyTest do use ExUnit.Case require Mockex test "fails to compile" do with_mock(mock) = defmock_of GenServer do def start, do: {:ok, self()} end end end ` This will fail...
### Currently, if I want to verify that a function with arity 3 was called but I don't care about the number of args, I still have to say ```elixir...
### Test ``` refute_called mock.some_fn(Mockex.Matchers.any()) ``` ### Message ``` Did not expect get({:matches, #Function}) to be called but it was. ```
**⚠️ DRAFT** _Tests are still failing due to some hardcoded "github.com" values in them. I am still trying to fix it, but I wanted you to take a look at...