-
Notifications
You must be signed in to change notification settings - Fork 511
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
More intuitive expectations on blocks #383
Comments
It would definitely be a nice matcher. I don't know how to actually tell whether a block has been executed, though. |
Interesting thoughts.. might take a look into this one |
👍 a way to check if a block was invoked would be awesome |
👍 On Tuesday, February 18, 2014, Felipe Cypriano [email protected]
|
I was wondering if anyone had a pattern they used, or if Kiwi has something I'm unaware of, for neatly solving the expectation that a block should be invoked.
I've seen the following pattern suggested for verifying whether a block is called on success, but this seems a bit verbose and unintuitive.
A bit of playing suggests that block pointers are recognised as Objective-C classes, although not descended from NSObject, which Kiwi expectations need to be applied to.
I was wondering is something like the following might be possible/desirable?
The idea being that you should be able to do variations on:
etc.
Any thoughts?
The text was updated successfully, but these errors were encountered: