Closed lcezermf closed 5 years ago
assert_called is a macro defined here: https://github.com/jjh42/mock/blob/master/lib/mock.ex#L155
It should only be called on modules that were mocked.
@Olshansk I tried to use following the same approach that exists in the documentation, but with no success.
Could you give an example of how to use? Then I'll close this issue.
@Olshansk thanks a lot, closing it.
The function
assert_called()
does not exists, the correct approach is to useassert called()
.I tried a lot use
assert_called()
but it raises an error, so I accidentally change toassert called()
and worked fine.