To a beginner, OCMock looks scary. The syntax is strange, the idea of stubbing seems complicated, and skirting around the need to use it at all times kind of works out for a while.
[[[mock stub] // three brackets!!
[OCMockObject niceMockForClass:UINavigationItem.class]; // it has to be told to be nice?
All of this can be overwhelming for someone who just wants to write simple unit tests for a particular view controller.
Once you look into the specifics of OCMock, however, things get less terrifying really quickly. It is helpful to compare OCMock’s approach to stubbing to the behaviors of certain bird species. As always, the soothing voice of David Attenborough brings clarity and joy to even the most mundane puzzles of life’s journey.



