I have an OCMockito mock of a class QuestionBuilder with the method questionsFromJSON:error:. This method accepts a handle (NSError **)error as an argument. How do I verify the method was called?
I’ve tried:
[verify(builder) questionsFromJSON:@"Fake JSON"
error:nil];
and:
NSError *err;
[verify(builder) questionsFromJSON:@"Fake JSON"
error:&err];
Both issue the error:
testQuestionJSONIsPassedToQuestionBuilder (QuestionCreationTests) failed:
*** -[NSProxy doesNotRecognizeSelector:questionsFromJSON:error:] called!