Closed PatrickNLT closed 9 years ago
There is no test for now for the case when there is no tessdata directory in the application bundle: if anyone knows how to mock this, please comment.
Pls, take a look here: https://github.com/kiwi-bdd/Kiwi/wiki/Mocks-and-Stubs
@PatrickNLT, one more thing. It seems that there are two instances of very similar code in tests:
I've fixed my own concerns in #189. Pls, review.
There is no test for now for the case when there is no tessdata directory in the application bundle: if anyone knows how to mock this, please comment.
There is a case in InitializationTests.m at line 358, which does exactly what is requested.
it(@"Should return nil if contentsOfDirectoryAtPath fails", ^{
checkInitializationWithFailedSelectorReturnValueAndCount(@selector(contentsOfDirectoryAtPath:error:), nil, 2);
cleanTessdataFolderAtPath(cachesTessDataPath);
});
So it seems the issue can be closed, if there is no more concerns about it, @kevincon.
WIP for #170