Skip to content

Commit 6b1949f

Browse files
author
Josh Holtz
committed
Made tests a bit more specific
1 parent 7a868b4 commit 6b1949f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Project/JSONAPITests/JSONAPITests.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ - (void)testDataArticles {
5555
XCTAssert([article isKindOfClass:[ArticleResource class]], @"Article should be a ArticleResource");
5656
XCTAssertEqualObjects(article.ID, @"1", @"Article id should be 1");
5757
XCTAssertEqualObjects(article.title, @"JSON API paints my bikeshed!", @"Article title should be 'JSON API paints my bikeshed!'");
58-
XCTAssertNotNil(article.versions, @"Article versions should contain an array of dates");
58+
59+
NSArray *dateStrings = @[@"2015-09-01T12:15:00Z",@"2015-08-01T06:15:00Z"];
60+
XCTAssertEqualObjects(article.versions, dateStrings, @"Article versions should contain an array of date strings");
5961
}
6062

6163
- (void)testIncludedPeopleAndComments {

0 commit comments

Comments
 (0)