Closed esse closed 5 years ago
Hi
I think that the warning is correct, in order to match a pattern you need to pin the variable. Try the following code:
assert_called(SomeModule, :execute, [^params])
@amatalai thanks! I've created a PR which add that to README: #33.
Example code:
Example test:
Expected result:
Actual result:
(note that line 15 is:
assert_called(SomeModule, :execute, [params])
)