This commit is contained in:
2023-10-24 08:16:17 +02:00
parent 8ebc06e445
commit 6d4ebda4bc
3 changed files with 17 additions and 14 deletions

View File

@@ -127,10 +127,7 @@ mod test {
.get("_flash")
.expect("Expected flash cookie");
assert_eq!(
flash_cookie.value(),
"7:successSuccessfully deleted the event"
);
assert_eq!(flash_cookie.value(), "7:successEvent gelöscht");
let event = PlannedEvent::find_by_id(&db, 1).await;
assert_eq!(event, None);
@@ -265,10 +262,7 @@ mod test {
.get("_flash")
.expect("Expected flash cookie");
assert_eq!(
flash_cookie.value(),
"7:successSuccessfully planned the event"
);
assert_eq!(flash_cookie.value(), "7:successEvent hinzugefügt");
let event = PlannedEvent::find_by_id(&db, 2).await.unwrap();
assert_eq!(event.name, "my-cool-new-event");