This commit is contained in:
Tadeas Kriz 2017-04-27 15:45:33 +02:00
parent 12e8cdcc8b
commit cfe0b0189d
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
* Fixed crash when source files were using non-ASCII characters - [bug #126](https://github.com/Brightify/Cuckoo/issues/126)
* Added `--exclude` parameter to explicitly exclude some types from mocking - [PR #112](https://github.com/Brightify/Cuckoo/pull/112) - (thanks to nxtstep for the feature)
* Fixed compile errors when generating stubs where inner types were returned - [bug #118](https://github.com/Brightify/Cuckoo/issues/118)
* Added possibility to reset multiple mocks with different types at once - [but #103](https://github.com/Brightify/Cuckoo/issues/103)
## 0.9.1

View File

@ -22,7 +22,7 @@ public func verify<M: Mock>(_ mock: M, _ callMatcher: CallMatcher = times(1), fi
}
/// Clears all invocations and stubs of mocks.
public func reset<M: Mock>(_ mocks: M...) {
public func reset(_ mocks: HasMockManager...) {
mocks.forEach { mock in
mock.cuckoo_manager.reset()
}