Update the test case to ensure thi silly problem will not occur again :)
This commit is contained in:
parent
4173f9f3c1
commit
974c3ff4ad
|
@ -95,6 +95,10 @@
|
|||
operation = token.downloadOperation;
|
||||
expect([operation class]).to.equal([SDWebImageTestDownloadOperation class]);
|
||||
|
||||
// Assert the NSOperation conforms to `SDWebImageOperation`
|
||||
expect([NSOperation.class conformsToProtocol:@protocol(SDWebImageOperation)]).beTruthy();
|
||||
expect([operation conformsToProtocol:@protocol(SDWebImageOperation)]).beTruthy();
|
||||
|
||||
// back to the original value
|
||||
downloader.config.operationClass = nil;
|
||||
token = [downloader downloadImageWithURL:imageURL3 options:0 progress:nil completed:nil];
|
||||
|
|
Loading…
Reference in New Issue