feat: add confirmation

This commit is contained in:
Sandro Eiler 2024-03-09 14:06:47 +01:00
parent 1bc7ae4c7a
commit 7eebcb12a2
7 changed files with 65 additions and 6 deletions

View file

@ -0,0 +1,15 @@
use crate::helpers::spawn_app;
#[tokio::test]
async fn confirmations_without_token_are_rejected_with_a_405() {
// Arrange
let app = spawn_app().await;
// Act
let response = reqwest::get(&format!("{}/subscriptions/confirm", app.address))
.await
.unwrap();
// Assert
assert_eq!(response.status().as_u16(), 405);
}