allending/Kiwi — Issue #79: Instance method '-attachToVerifier:verifier:' not found
Author: jessbowers
Created: 2011-12-15 18:21:47+00:00
State: open

I'm building some Kiwi tests and getting a warning that I cannot explain. I'm new to Kiwi.

I have a mock object setup:

id conversationMock = [KWMock mockForProtocol:@protocol(Conversation)];
[conversationMock stub:@selector(end)];

And in my controller, a property called "conversation":

@interface MyController ()
@property (nonatomic, assign) id conversation;
@end

The mock is assigned to the property, then in the spec I check for whether the method "end" is called on the conversation:

it(@"should end conversation", ^{
[[[myController.conversation] should] receive] end];
[myController stopTalking];
});

The compiler (LLVM 3.0) is showing a warning: **"Instance method '-attachToVerifier:verifier:' not found"**

What is the cause of this? Is this something I need to fix? (test runs ok, checks the method call to end works ok)

Also asking on Stack Overflow: