allending/Kiwi — pull request #270 by kristopherjohnson (2013-04-28 19:42:09+00:00)
Title: Add KWContainStringMatcher

Adds new matcher class, KWContainStringMatcher, to support expectations `containString:`, `containString:options:`, `startWithString:`, and `endWithString:`.

Example usage:

[[@"Hello, world!" should] containString:@"Hello"];
[[@"Hello, world!" shouldNot] containString:@"xyzzy"];

[[@"Hello, world!" should] containString:@"WORLD" options:NSCaseInsensitiveSearch];

[[@"Hello, world!" should] startWithString:@"Hello,"];
[[@"Hello, world!" should] endWithString:@"world!"];

For more details and examples, see https://gist.github.com/kristopherjohnson/5478039