Releases: wanderanimrod/elixir_mock
Releases · wanderanimrod/elixir_mock
Create mocks from erlang modules
You can now create mocks from modules like :erlang
and :inet
Define mock modules at run time
Adds any() matcher for structs
Thanks to @facto, you can now do assert or refute that a function on a mock was called with a struct.
Assume you have defined a struct named Person
, you can now do the following:
assert_called my_mock.my_function(Matchers.any(%Person{}))
For more context, see documentation for more details on the any/1
matcher.
Fix: Allow nils to be injected in mock definitions
Bug fix: Call verification with structs
0.2.5 Fixes call verification errors when one of the arguments is a Struct
0.2.4
Adds ability to deep match on maps. See documentation for details