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.
Written by Marin Usalj
Related protips
1 Response
The link does not work
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ios
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#