Skip to content

Version 0.9.8

Compare
Choose a tag to compare
@jeffh jeffh released this 24 Sep 00:11
· 311 commits to master since this release

This version includes various minor bug fixes for iOS 8 compatibility and does not introduce any breaking API changes.

Known Issues

Test bundles currently do not work under Xcode 6, it will be addressed in the next release. Use Spec Suites to work around this for now.

New Features

Arguments::any matcher will match protocols as well

In addition to instance of classes checks, you can now pass a protocol to any:

[fake use:objectConformingToMyProtocol];
fake should have_received(use:).with(any(@protocol(MyCustomProtocol))); // passes

inline dictionary context for itShouldBehaveLike

In addition to passing a dictionary literal, itShouldBehaveLike can accept a block that modifies the context dictionary it is given instead:

itShouldBehaveLike(@"a shared example group", ^(NSMutableDictionary *context) {
    context[@"value"] = globalValue__;
});

The provided block is invoked as a beforeEach before the shared example group is called.