-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with_mocks/3 is undefined #80
Comments
You'd need to provide a little more context. Which function is getting called when an undefined error is thrown? Make you need to use the |
It throws an
I got from the documentation without changing anything. |
Did you import Mock? |
Yes I did, I have other |
After some digging on the codebase, I fixed it by using For instance, I have also tried using the method below as well:
And I realize it only works if in the test case we are calling On the other hand, if we do:
it will do param pattern matching. Note that syntactically they are lil bit different (placement of
Please do let me know what do you think. |
@chingan-tsc Do you think a change to the documentation will be sufficient? |
documentation and the readme haven't been updated to show |
I could update it myself but PRs are more than welcome! |
Hi I was trying to use with_mocks/3
like written in the docs but it throws an undefined function error. Any ideas why?
The text was updated successfully, but these errors were encountered: