mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-12-17 21:46:40 +00:00
Name helper mock.
This commit is contained in:
parent
725280372d
commit
2e644faf9d
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ async fn create_unconfirmed_subscriber(app: &TestApp) -> ConfirmationLinks {
|
|||
let _mock_guard = Mock::given(path("/email"))
|
||||
.and(method("POST"))
|
||||
.respond_with(ResponseTemplate::new(200))
|
||||
.named("Create unconfirmed subscriber")
|
||||
.expect(1)
|
||||
.mount_as_scoped(&app.email_server)
|
||||
.await;
|
||||
|
|
Loading…
Reference in a new issue