allending/Kiwi — pull request #141 by sgleadow (2012-06-07 04:00:31+00:00)
Title: Added string contains Hamcrest-y matcher for expectation argument matching

Wanted a matcher similar to hasPrefix to use when checking arguments on a 'should receive'. Followed the example of StringPrefixMatcher, and made both use KW prefix now that the headers are public.

Added unit test for KWStringContainsMatcher to check the 'matchers' implementation.

You can now check expectations with things like:

[[[fakeObject should] receive] someMethodTakingAString:hasSubstring(@"sub")]

[fakeObject someMethodTakingAString:@"123sub456"];