3.0 Release
New Features:
.stub()
for the same function with the same argument specification nowfatalError()
s.- can use
stubAgain()
when needing to stub the same function with the same arguments - associated type
StaticFunction
has been renamed toClassFunction
, 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