Skip to content
Snippets Groups Projects
Commit 6ad8c200 authored by Jorge Canizales's avatar Jorge Canizales
Browse files

Adds more assertions to the test

parent 6a84b3d2
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,8 @@ ...@@ -124,7 +124,8 @@
XCTAssertNotNil(value, @"nil value received as response."); XCTAssertNotNil(value, @"nil value received as response.");
[response fulfill]; [response fulfill];
RGDFeature *feature = [RGDFeature parseFromData:value]; RGDFeature *feature = [RGDFeature parseFromData:value];
NSLog(@"%@ %@", feature.name, feature.location); XCTAssertEqualObjects(point, feature.location);
XCTAssertNotNil(feature.name, @"Response's name is nil.");
[expectedResponse fulfill]; [expectedResponse fulfill];
} completionHandler:^(NSError *errorOrNil) { } completionHandler:^(NSError *errorOrNil) {
XCTAssertNil(errorOrNil, @"Finished with unexpected error: %@", errorOrNil); XCTAssertNil(errorOrNil, @"Finished with unexpected error: %@", errorOrNil);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment