Created
May 13, 2015 14:36
-
-
Save cdzombak/125c6ff9b9613e7a3913 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NYTCompletionBlock completion = ^(id result) {}; | |
id completionMock = [OCMockObject partialMockForObject:completion]; | |
[[[completionMock expect] copy] andReturn:completion]; | |
id sut = [[NYTXXX alloc] initWithCompletion:completionMock]; | |
#pragma unused (sut) | |
[completionMock verify]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is bad; don't do it.