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); }