From a03f7eb887dc2563bab2b06df6b7111e6b60363b Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Thu, 25 Apr 2019 19:44:16 +0200 Subject: [PATCH] adapt tests --- src/web/mod.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/web/mod.rs b/src/web/mod.rs index b943e8b..f3070da 100644 --- a/src/web/mod.rs +++ b/src/web/mod.rs @@ -588,10 +588,16 @@ pub mod tests { let mut response = client.get("/about").dispatch(); assert_eq!(response.status(), Status::Ok); assert_eq!(response.content_type(), Some(ContentType::HTML)); + assert!(response.body_string().unwrap().contains("distribution and discovery")); + + // Check that we see the privacy policy. + let mut response = client.get("/about/privacy").dispatch(); + assert_eq!(response.status(), Status::Ok); + assert_eq!(response.content_type(), Some(ContentType::HTML)); assert!(response.body_string().unwrap().contains("Public Key Data")); // Check that we see the API docs. - let mut response = client.get("/apidoc").dispatch(); + let mut response = client.get("/about/api").dispatch(); assert_eq!(response.status(), Status::Ok); assert_eq!(response.content_type(), Some(ContentType::HTML)); assert!(response.body_string().unwrap().contains("/vks/v1/by-keyid"));