allending/Kiwi — Issue #99: (Wiki) mocks_and_stubs doc uses shouldReceive
Author: augustj
Created: 2012-03-01 19:28:51+00:00
State: open

On the current mocks_and_stubs docs there is:
id carMock = [Car mock];
[[carMock should] beMemberOfClass:[Car class]];
[carMock shouldReceive:selector(currentGear) andReturn:theValue(3)];

According to the expectations doc, I think the appropriate pattern is:
[[subject should] receive:(SEL)aSelector andReturn:(id)aValue]

Should the 3rd line be

[[carMock should] receive:selector(currentGear) andReturn:theValue(3)];