Skip to content

Releases: wanderanimrod/elixir_mock

Create mocks from erlang modules

11 Apr 20:43
Compare
Choose a tag to compare

You can now create mocks from modules like :erlang and :inet

Define mock modules at run time

20 Oct 15:34
Compare
Choose a tag to compare

Thanks to @facto for this PR. There are no changes in the API or usage.

Adds any() matcher for structs

18 Oct 19:21
Compare
Choose a tag to compare

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

16 Oct 19:38
Compare
Choose a tag to compare

Allow nils to be injected into mock definitions from test contexts.

Thanks @facto for PR.

Bug fix: Call verification with structs

09 Oct 06:12
Compare
Choose a tag to compare
0.2.5

Fixes call verification errors when one of the arguments is a Struct

0.2.4

03 Aug 03:50
Compare
Choose a tag to compare

Adds ability to deep match on maps. See documentation for details