Releases: lipanski/mockito
Releases · lipanski/mockito
0.27.0
- Added a
Mock#matched()
as a soft way of checking that a Mock, as opposed to the Mock#assert()
method, which panics.
Thanks @max-b
0.26.0
- [Breaking] Increased the minimum supported Rust version to 1.36.0.
0.25.3
- Fixed and issue where spaces encoded as
+
wouldn't be interpreted properly by Matcher::UrlEncoded
.
Thanks to @cakekindel
0.25.2
- Improve error messages and the String representation of mocks, especially when it comes to their
AllOf
and AnyOf
parts.
Thanks to @max-b
0.25.1
- When creating multiple mocks that match the same request, the last defined mock should be the one matched forever, once the all other mocks have reached their expected amount of hits. See #99 and 96f3e30
0.25.0
- You can provide different mocks (and especially mock responses) for subsequent requests to the same endpoint. See #99 and b0966f8
- The
501 Mock Not Implemented
response now comes with a content-length: 0
header, to prevent some clients from hanging.
Thanks to @xneomac
0.24.0
- Added
#[must_use]
to Mock.create()
calls.
- A warning was introduced to remind about calling
Mock.create()
whenever a mock is initialized without it.
Thanks to @dbr
0.23.3
- Fix compatibility with the
assert-json-diff
library (version 1.0.3)