I'm new to OCMock and I'm planing to mock a request call. The API that needs to be mocked is executed as defined below.
[ProductRequest requestProductUpdateUrl: @"testUrl" withParameters:params error:^(NSString *updateUrl, NSError *error){
if (!error && [updateUrl length] !=0 ) {
NSLog(@"Success");
} else {
NSLog(@"Error");
}
}];
Any idea on how I can mock the method requestProductUpdateUrl
using OCMock ?