Releases: jonreid/OCMockito
Releases · jonreid/OCMockito
v1.3.1
v1.3.0
Version 1.3.0
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 related
getValueForKey:
andvalueForKeyPath:
KVO methods. Thanks to Sasha Zats
Project changes:
- Increased deployment targets to OS X 10.8, iOS 6.0.
v1.2.0
Version 1.2.0
05 Apr 2014
If you're not using CocoaPods, please specify -ObjC
in your "Other Linker Flags".
Fixes:
- Fix crash capturing nil selectors as method parameters. Thanks to: Sergio Padrino
- Fix crash capturing inline blocks as method parameters. Thanks to: Sergio Padrino
- Fix crash returning BOOL on 64-bit iOS. Thanks to: Ullrich Schäfer
Features:
- Added support for pointer arguments, including
NSError **
. - Added support for struct arguments. Thanks to: César Estébanez Tascón
Improvements:
- To build OCMockito without CocoaPods, execute the script Frameworks/gethamcrest first to get the
latest OCHamcrest release.
v1.1.0
Version 1.1.0
30 Oct 2013
Features:
- Added MKTArgumentCaptor to capture arguments:
- Use
capture
to capture the argument. This must be used inside of
verification. - Use
value
to return the captured value. - Use
allValues
to return an array of all captured values.
- Use
Improvements:
- Changed mock object factory methods to cast to
(id)
to eliminate AppCode warnings. - Added support for 64-bit iOS devices.
- Convert primitive arguments to objects using NSInvocation+TKAdditions by Taras
Kalapun.
Examples & Documentation:
- Updated examples so they are based on Apple's templates for main target vs. test target. Added
CocoaPods examples. - Eliminated DocSet. Documentation will be in the main README and in the OCMockito wiki,
https://github.com/jonreid/OCMockito/wiki/_pages
v1.0.0
Version 1.0.0
06 Sep 2013
This release adopts Semantic Versioning (http://semver.org). Thanks to: Jens Nerup
New dependencies:
- Requires OCHamcrest 3.0.0.
Features:
- Added support for XCTest. Special thanks to Richard Clem for testing
- Added ability to match block arguments. Supported matchers:
anything()
nilValue()
notNilValue()
sameInstance()
- Added
-description
to mock objects to help when debugging.