Skip to content

Latest commit

 

History

History
85 lines (61 loc) · 2.44 KB

CHANGES.md

File metadata and controls

85 lines (61 loc) · 2.44 KB

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.

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

Version 1.0.0

06 Sep 2013

This release adopts Semantic Versioning (http://semver.org). Thanks to: Jens Nerup

New dependency:

  • 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.

Version 0.23

23 Nov 2012

  • Added atLeast(count) and atLeastOnce() for verifyCount(). Thanks to: Markus Gasser
  • Handle Class as both argument type and return type. Thanks to: David Hart
  • Added support for -isKindOfClass: to object mocks. Thanks to: Tim Pesce
  • No more need to specify "Other Linker Flags"! Depending on your project, you may be able to eliminate:
    • -lstdc++
    • -ObjC
  • Converted source, tests, and examples to ARC

Version 0.22

18 Mar 2012

  • Added mockClass(…) which mocks a class object. Thanks to: David Hart
  • Added mockObjectAndProtocol(Class, Protocol) which mocks an object of a given class that also implements a given protocol. Thanks to: Kevin Lundberg

Version 0.21

09 Mar 2012

  • Added mockProtocol(…) which mocks an object implementing a given protocol.
  • given(…) now supports methods returning float or double. Thanks to: Markus Gasser
  • verify(…) and verifyCount(…) check that argument is a mock object.
  • Eliminated givenPreviousCall.
  • Changed build configuration to Debug during initial development.

Version 0.1

24 Nov 2011 prerelease