feat: add confirmation
This commit is contained in:
parent
1bc7ae4c7a
commit
7eebcb12a2
7 changed files with 65 additions and 6 deletions
15
tests/api/subscriptions_confirm.rs
Normal file
15
tests/api/subscriptions_confirm.rs
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue