From 1913bf8b225646befa172e911b8728d1d37ada50 Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 24 Jan 2024 23:04:35 +0100 Subject: [PATCH] update tests to new name field in update --- src/tera/admin/planned_event.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tera/admin/planned_event.rs b/src/tera/admin/planned_event.rs index da33c3d..d198c30 100644 --- a/src/tera/admin/planned_event.rs +++ b/src/tera/admin/planned_event.rs @@ -185,7 +185,7 @@ mod test { let req = client .put("/admin/planned-event") .header(ContentType::Form) // Set the content type to form - .body("id=1&planned_amount_cox=2&max_people=3¬es=new-planned-event-text"); // Add the form data to the request body; + .body("id=1&planned_amount_cox=2&max_people=3¬es=new-planned-event-text&name=test"); // Add the form data to the request body; let response = req.dispatch().await; assert_eq!(response.status(), Status::SeeOther); @@ -222,7 +222,9 @@ mod test { let req = client .put("/admin/planned-event") .header(ContentType::Form) // Set the content type to form - .body("id=1337&planned_amount_cox=2&max_people=3¬es=new-planned-event-text"); // Add the form data to the request body; + .body( + "id=1337&planned_amount_cox=2&max_people=3¬es=new-planned-event-text&name=test", + ); // Add the form data to the request body; let response = req.dispatch().await; assert_eq!(response.status(), Status::SeeOther); -- 2.45.2