new newbie flag
This commit is contained in:
@@ -301,8 +301,9 @@ mod test {
|
||||
always_show: event.always_show,
|
||||
is_locked: event.is_locked,
|
||||
trip_type_id: None,
|
||||
allow_guests: event.allow_guests,
|
||||
};
|
||||
event.update(&pool, &user, &cancel_update).await;
|
||||
event.update(&pool, &user, &cancel_update).await.unwrap();
|
||||
|
||||
// Rower received notification
|
||||
let notifications = Notification::for_user(&pool, &rower).await;
|
||||
@@ -331,13 +332,14 @@ mod test {
|
||||
always_show: event.always_show,
|
||||
is_locked: event.is_locked,
|
||||
trip_type_id: None,
|
||||
allow_guests: event.allow_guests,
|
||||
};
|
||||
event.update(&pool, &user, &update).await;
|
||||
event.update(&pool, &user, &update).await.unwrap();
|
||||
assert!(Notification::for_user(&pool, &rower).await.is_empty());
|
||||
assert!(Notification::for_user(&pool, &cox.user).await.is_empty());
|
||||
|
||||
// Cancel event again
|
||||
event.update(&pool, &user, &cancel_update).await;
|
||||
event.update(&pool, &user, &cancel_update).await.unwrap();
|
||||
|
||||
// Rower is removed if notification is accepted
|
||||
assert!(event.is_rower_registered(&pool, &rower).await);
|
||||
|
||||
Reference in New Issue
Block a user