TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
__block BOOL someConditionIsMet = NO;
[NetworkingManager someNetworkCallSuccess:(void (^)(NSURLSessionDataTask *task, id responseObject)){
someConditionisMet = YES;
} failure:(void (^)(NSURLSessionDataTask *task, NSError *error)){
someConditionisMet = NO;
}];
[self stallRunLoopUntilConditionIsMet:^BOOL{
return (_someConditionIsMet == YES);
} timeout:20];
XCTAssertTrue(testTheCondition, @"the condition wasn't true");
Jim Schultz, [email protected]
FOTestKit is available under the MIT license. See the LICENSE file for more info.