-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Not possible to mock multiple save()
calls with handleCreate
#88
Comments
Hmmm .. @soeffing .. that is a good question .. you're right .. that should just work. I will investigate that and see if I can fix it. |
@danielspaniel thx a lot! Let me know if and how I can help you...your addon is great and we really want to use it! |
no problem @soeffing .. thanks for the offer to help out :) |
@soeffing .. this is now fixed in version 1.0.10 of factory guy, and thank you for bringing this bug to my attention |
Thank you so much! |
I have code in which I have a loop and inside this loop I call
save()
.Example:
It is possible to mock one request. For instance, I can mock the first request of the loop by doing this inside my tests:
But the subsequent requests are not being mocked. I would expect that
TestHelper.handleCreate('award');
mocks all the three request inside the loop but it does not. Is there a way to stub multiple request with one.handleCreate()
statement?The text was updated successfully, but these errors were encountered: