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 fromtearDown
). 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 relatedgetValueForKey:
andvalueForKeyPath:
KVO methods. Thanks to: Sasha Zats
Project changes:
- ๐ Increased deployment targets to OS X 10.8, iOS 6.0.
- ๐ To build OCMockito without CocoaPods, execute two scripts: