Compare commits
No commits in common. "9181b7916667b35293497da1ac9b93236ae79475" and "24667e56a43c156e565c74fd720e5df05a9d78cb" have entirely different histories.
9181b79166
...
24667e56a4
@ -185,7 +185,7 @@ mod test {
|
|||||||
let req = client
|
let req = client
|
||||||
.put("/admin/planned-event")
|
.put("/admin/planned-event")
|
||||||
.header(ContentType::Form) // Set the content type to form
|
.header(ContentType::Form) // Set the content type to form
|
||||||
.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;
|
.body("id=1&planned_amount_cox=2&max_people=3¬es=new-planned-event-text"); // Add the form data to the request body;
|
||||||
let response = req.dispatch().await;
|
let response = req.dispatch().await;
|
||||||
|
|
||||||
assert_eq!(response.status(), Status::SeeOther);
|
assert_eq!(response.status(), Status::SeeOther);
|
||||||
@ -222,9 +222,7 @@ mod test {
|
|||||||
let req = client
|
let req = client
|
||||||
.put("/admin/planned-event")
|
.put("/admin/planned-event")
|
||||||
.header(ContentType::Form) // Set the content type to form
|
.header(ContentType::Form) // Set the content type to form
|
||||||
.body(
|
.body("id=1337&planned_amount_cox=2&max_people=3¬es=new-planned-event-text"); // Add the form data to the request 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;
|
let response = req.dispatch().await;
|
||||||
|
|
||||||
assert_eq!(response.status(), Status::SeeOther);
|
assert_eq!(response.status(), Status::SeeOther);
|
||||||
|
Loading…
Reference in New Issue
Block a user