Last Updated: February 25, 2016
·
2.213K
· supermarin

Testing Async methods in Objective C with Kiwi

Here's a sample gist showing how to test asynchronous methods (blocks) the right way.

The first 2 specs are just capturing the block and executing it manually with arbitrary values.

The 3rd spec is really waiting for the async method to finish and executing over real data returned from the block.

https://gist.github.com/mneorr/5597771

1 Response
Add your response

The link does not work

over 1 year ago ·