Skip to content

Commit 6f8553a

Browse files
TuntiiCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent aef738d commit 6f8553a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/cookbook/src/crates/rustapi_testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ You can define strict expectations on how your application interacts with the mo
102102
```rust,ignore
103103
// Match a POST request with specific body
104104
server.expect(RequestMatcher::new(Method::POST, "/webhook")
105-
.body_contains("event_type=payment_success"))
106-
.respond_with(MockResponse::new().status(200));
105+
.body_string("event_type=payment_success".into()))
106+
.respond_with(MockResponse::new().status(StatusCode::OK));
107107
```
108108

109109
#### Verification

0 commit comments

Comments
 (0)