Skip to content

Instantly share code, notes, and snippets.

@cdzombak
Created May 13, 2015 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdzombak/125c6ff9b9613e7a3913 to your computer and use it in GitHub Desktop.
Save cdzombak/125c6ff9b9613e7a3913 to your computer and use it in GitHub Desktop.
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];
@cdzombak
Copy link
Author

this is bad; don't do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment