summaryrefslogtreecommitdiff
path: root/src/boot/routes/test.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-04-03 23:45:23 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-04-03 23:45:23 -0400
commit9f7f82dbd9adee8ae18ae7ff2600b3e1dc8fadbc (patch)
treed973d00486ffab3445e3ca454e93a941ed8fe6e2 /src/boot/routes/test.rs
parent24755a89a97a4d1cb10ebbcf41e200861f3bedf3 (diff)
parent45eea07a56022f647b3a273798a5255cda73f13d (diff)
Merge branch 'prop/rename-login-to-user'
Diffstat (limited to 'src/boot/routes/test.rs')
-rw-r--r--src/boot/routes/test.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/boot/routes/test.rs b/src/boot/routes/test.rs
index 202dcb9..55802fe 100644
--- a/src/boot/routes/test.rs
+++ b/src/boot/routes/test.rs
@@ -12,20 +12,20 @@ async fn returns_identity() {
.await
.expect("boot always succeeds");
- assert_eq!(viewer.login, response.login);
+ assert_eq!(viewer.user, response.user);
}
#[tokio::test]
async fn includes_logins() {
let app = fixtures::scratch_app().await;
- let spectator = fixtures::login::create(&app, &fixtures::now()).await;
+ let spectator = fixtures::user::create(&app, &fixtures::now()).await;
let viewer = fixtures::identity::fictitious();
let response = get::handler(State(app), viewer)
.await
.expect("boot always succeeds");
- assert!(response.snapshot.logins.contains(&spectator));
+ assert!(response.snapshot.users.contains(&spectator));
}
#[tokio::test]
@@ -44,7 +44,7 @@ async fn includes_channels() {
#[tokio::test]
async fn includes_messages() {
let app = fixtures::scratch_app().await;
- let sender = fixtures::login::create(&app, &fixtures::now()).await;
+ let sender = fixtures::user::create(&app, &fixtures::now()).await;
let channel = fixtures::channel::create(&app, &fixtures::now()).await;
let message = fixtures::message::send(&app, &channel, &sender, &fixtures::now()).await;
@@ -59,7 +59,7 @@ async fn includes_messages() {
#[tokio::test]
async fn excludes_expired_messages() {
let app = fixtures::scratch_app().await;
- let sender = fixtures::login::create(&app, &fixtures::ancient()).await;
+ let sender = fixtures::user::create(&app, &fixtures::ancient()).await;
let channel = fixtures::channel::create(&app, &fixtures::ancient()).await;
let expired_message =
fixtures::message::send(&app, &channel, &sender, &fixtures::ancient()).await;
@@ -80,7 +80,7 @@ async fn excludes_expired_messages() {
#[tokio::test]
async fn excludes_deleted_messages() {
let app = fixtures::scratch_app().await;
- let sender = fixtures::login::create(&app, &fixtures::now()).await;
+ let sender = fixtures::user::create(&app, &fixtures::now()).await;
let channel = fixtures::channel::create(&app, &fixtures::now()).await;
let deleted_message = fixtures::message::send(&app, &channel, &sender, &fixtures::now()).await;