mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-12-18 14:06:37 +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"))
|
let _mock_guard = Mock::given(path("/email"))
|
||||||
.and(method("POST"))
|
.and(method("POST"))
|
||||||
.respond_with(ResponseTemplate::new(200))
|
.respond_with(ResponseTemplate::new(200))
|
||||||
|
.named("Create unconfirmed subscriber")
|
||||||
.expect(1)
|
.expect(1)
|
||||||
.mount_as_scoped(&app.email_server)
|
.mount_as_scoped(&app.email_server)
|
||||||
.await;
|
.await;
|
||||||
|
|
Loading…
Reference in a new issue