We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aef738d commit 6f8553aCopy full SHA for 6f8553a
docs/cookbook/src/crates/rustapi_testing.md
@@ -102,8 +102,8 @@ You can define strict expectations on how your application interacts with the mo
102
```rust,ignore
103
// Match a POST request with specific body
104
server.expect(RequestMatcher::new(Method::POST, "/webhook")
105
- .body_contains("event_type=payment_success"))
106
- .respond_with(MockResponse::new().status(200));
+ .body_string("event_type=payment_success".into()))
+ .respond_with(MockResponse::new().status(StatusCode::OK));
107
```
108
109
#### Verification
0 commit comments