Name helper mock.

This commit is contained in:
LukeMathWalker 2021-07-21 22:21:23 +01:00
parent 725280372d
commit 2e644faf9d

View file

@ -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;