Skip to content

3.0 Release

Compare
Choose a tag to compare
@Rivukis Rivukis released this 20 Nov 00:34
· 60 commits to master since this release

New Features:

  • .stub() for the same function with the same argument specification now fatalError()s.
  • can use stubAgain() when needing to stub the same function with the same arguments
  • associated type StaticFunction has been renamed to ClassFunction, since static functions can not be subclassed
  • passing in the incorrect number of arguments now fatalError()s instead of failing silently
  • rewrote all the fatal error messaging, should be easier to read
  • rewrote how stubs are held to improve performance
  • rewrote how recorded calls are held to improve performance

Bug Fixes:

  • fixed an issue where certain stubs that were specified to return nil behaved as if it wasn't stubbed.
  • fixed an issue where some dictionaries were incorrectly equating to false