OCMockito v1.3.0 Release Notes

  • 04 Jun 2014

    This version requires OCHamcrest 4.0.1. ๐Ÿ— TPWeakProxy 1.0.0 is also needed to build OCMockito.

    • ๐Ÿ— To build OCMockito without CocoaPods, execute two scripts:
      • Frameworks/gethamcrest
      • Frameworks/getweakproxy

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Fix mockClass crash on 64-bit runtime (OS X and iOS).
    • ๐Ÿ›  Fixed retain cycle between mocks and tests. The fix addresses most but not all cases. If the -dealloc of your System Under Test is not called when you nil out your SUT, call -reset on your mock object (probably from tearDown). Thanks to ronak2121 for testing

    ๐Ÿ”‹ Features:

    • Stub methods that return structs with willReturnStruct:objCType:. Thanks to GWStuartClift and Yaron Inger
    • stubProperty(instance, property, value) stubs a property, and its related getValueForKey: and valueForKeyPath: KVO methods. Thanks to: Sasha Zats

    Project changes:

    • ๐Ÿš€ Increased deployment targets to OS X 10.8, iOS 6.0.