From 08f4dac3d37f1861526d90049d32f5a49497e2a3 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Mon, 9 Jan 2023 19:14:20 +0900 Subject: [PATCH] Set blog title in test fixture --- src/routes/blogs.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/blogs.rs b/src/routes/blogs.rs index a1ca2816..8fed6f45 100644 --- a/src/routes/blogs.rs +++ b/src/routes/blogs.rs @@ -439,6 +439,7 @@ mod tests { login(&request, &user); let mut response = request.dispatch(); let body = response.body_string().unwrap(); + eprintln!("{:?}", &blog.fqn); let body_contains_edit_lnk = body.contains(&edit_link); teardown((&client, (instance, user, blog, post))); @@ -498,6 +499,7 @@ mod tests { let user = User::insert(conn, user).unwrap(); let blog = NewBlog { instance_id: instance.id, + title: random_hex(), actor_id: random_hex(), ap_url: random_hex(), inbox_url: random_hex(),