So I have a method that has the following signature, in a class called PopoverProvider
- (void)showPopoverForAction:(MESAction *)action fromRect:(CGRect)rect inView:(UIView *)view onDoneBlock:(MESActionPopoverDoneBlock)block;
And I want to verify that it gets called like so:
// popoverProvider is a PopoverProvider
[[[popoverProvider expect] andReturn:mockRecipeIngredientViewController]
showPopoverForAction:[OCMArg any]
fromRect:[OCMArg any] // !!!!
inView:[OCMArg any]
onDoneBlock:[OCMArg any]
];
The marked line causes a problem: [OCMArg any]
doesn't match on CGRect
s, which is a struct type.