-
Notifications
You must be signed in to change notification settings - Fork 113
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
Multiple expect_once #95
Comments
Any help/PR would be very appreciated @agramichael @mrdougwright 😊 |
Hmm, looked at the code a bit. Does it make sense to rework |
I was taking a look into this feature. I think we could change the data structure When we have multiple expect_once we just append the new expectations, and after the call, we remove the called callback. expect_once example:
Structure:
However for expect example:
structure:
stub example:
Structure:
WDYT @ream88? |
any news here? |
@ream88 any possibility of making it so that within one test I can stack two expect_once's so that the first call to the given route gets my first expect_once and the second call gets the second expect_once?
Currently the second expect_once would just redefine the first expect_once and I would get an error because the route is called twice.
Originally posted by @agramichael in #88 (comment)
The text was updated successfully, but these errors were encountered: