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
Add a way to yield different values in sequence #157
Comments
Or maybe
Not extremely beautiful... Could you use |
Sadly no; I'm trying to simulate failure-failure-success to test some retrying code. There's no distinguishing factors between the calls. |
I see. I'll need to mull over the best naming for a little while. If you want to implement it I'm happy to merge once we find a good name for it :) |
Sounds good, I'll probably work on it this weekend :) |
Add `thenYields` for sequential yielding. Closes #157.
stub.yields
is super-useful, since it finds the callback for you. But, if you wanted to yield different values in sequence, you're out of luck, and have to go back to manual stub-creation. And then you lose the magic callback-finding :(.I'm thinking something like this?
The text was updated successfully, but these errors were encountered: