Test Sut’s performFetch method is called after creating new FRC.

This commit is contained in:
NicholasTD07
2014-03-09 20:57:47 +08:00
parent dd8b02f3ee
commit 627ef15228
2 changed files with 11 additions and 0 deletions

View File

@@ -84,4 +84,14 @@
XCTAssertTrue([(NTDFakeCDTVC *)sut loggedError]);
}
- (void)testSutsPerformFetchIsCalledAfterCreatingNewFrc
{
// given
sut = [[NTDFakeCDTVC alloc] init];
// when
[sut fetchedResultsController];
// then
XCTAssertTrue([(NTDFakeCDTVC *)sut performFetchIsCalled]);;
}
@end

View File

@@ -12,5 +12,6 @@
@property (nonatomic) BOOL loggedFailure;
@property (nonatomic) BOOL loggedError;
@property (nonatomic) BOOL performFetchIsCalled;
@end