I have a method that takes a string and a completion block argument. I only care about the string argument, but OCMockObject throws an exception, what should I pass as the block argument?
My Protocol
@protocol SomeService <NSObject>
- (void)fetchDataForUsername:(NSString *)username andCompletion:(void (^)(NSArray *someData, NSError *error))completion;
@end
My test
OCMockObject *mock = [OCMockObject niceMockForProtocol:@protocol(SomeService)];
[[mock expect] fetchDataForUsername:@"SPECIFIC_USERNAME" andCompletion:[OCMArg any]];
Error Log
**-[OCMAnyConstraint copyWithZone:]: unrecognized selector sent to instance 0xdc79750**