title: Are there any test spy libraries available for Objective-C?
body: <p>I want to take a BDD approach to unit testing in an iOS project, and I just realized that there may not be an existing library that provides test doubles of the <a href="http://xunitpatterns.com/Test%20Spy.html" rel="nofollow">test spy</a> variety. Ideally, I'm looking for something similar to <a href="http://mockito.org/" rel="nofollow">Mockito</a>, <a href="https://github.com/pivotal/jasmine/wiki" rel="nofollow">Jasmine</a>, or <a href="https://github.com/btakita/rr" rel="nofollow">RR</a>.</p>
  
  <p>Before I go and spend a week of free time writing a test spy library, I thought I'd pose the question here on SO first.</p>
  
  <p>So far I've looked at <a href="http://www.mulle-kybernetik.com/software/OCMock/" rel="nofollow">OCMock</a> and <a href="http://www.kiwi-lib.info/" rel="nofollow">Kiwi</a>, but they both seem to be of the traditional <a href="http://vimeo.com/16285089" rel="nofollow">high-specification-by-default mocking frameworks</a> that require expectation assertions be set in the <a href="http://c2.com/cgi/wiki?ArrangeActAssert" rel="nofollow">arrange phase, prior to the act phase</a>. Obviously, this is hampering my vision of beautiful, <a href="http://en.wikipedia.org/wiki/Don%27t_repeat_yourself" rel="nofollow">DRY</a>, nested specs (which I plan on authoring in either <a href="http://www.kiwi-lib.info/" rel="nofollow">Kiwi</a> or <a href="https://github.com/pivotal/cedar" rel="nofollow">Cedar</a>).</p>