Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions LemacsTests/LemacsTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#import <XCTest/XCTest.h>

#import "NSDate+GitHub.h"

@interface LemacsTests : XCTestCase

@end
Expand All @@ -28,9 +30,11 @@ - (void)tearDown
[super tearDown];
}

- (void)testExample
- (void)testGitHubDateFormat
{
XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
NSDate * date = [NSDate dateWithTimeIntervalSinceReferenceDate:0.0];
NSString * gitDate = [NSDate GitHubDateStringWithDate: date];
XCTAssertEqualObjects(@"2001-01-01T00:00:00Z", gitDate);
}

@end