Skip to content

Instantly share code, notes, and snippets.

@ejeffers
ejeffers / gist:3724858
Created September 14, 2012 21:10
Async Unit Tests with Blocks - turns out, OCUnit doesn't provide a runLoop or anything like - so you gotta make your own
- (void)testFetchCrumbsForStartTime
{
[NSRunLoop currentRunLoop];
// use the downloader to "download" the data
UMEPGQueryManager *queryMan = [[UMEPGQueryManager alloc] init];
__block BOOL isDone = NO;
//Makes calls to several blocks, on different threads