Created
April 2, 2015 19:04
-
-
Save vikdenic/75cfe0b3091a787b7e11 to your computer and use it in GitHub Desktop.
XCTAssertEqualObjects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)testFirstSuperHero { | |
| XCTestExpectation *expectation = [self expectationWithDescription:@"Retrieving Superheroes"]; | |
| [SuperHero retrieveSuperHerosWithCompletion:^(NSArray *superHeros) { | |
| SuperHero *firstHero = superHeros.firstObject; | |
| NSLog(@"%@", firstHero.name); | |
| XCTAssertEqualObjects(firstHero.name, @"Namor"); | |
| [expectation fulfill]; | |
| }]; | |
| [self waitForExpectationsWithTimeout:10.0 handler:nil]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment