ElixirMock v0.2.7 Release Notes
Release Date: 2017-10-18 // over 6 years ago-
🤡 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.