Improve test.

This commit is contained in:
Justus Winter 2019-03-07 12:58:03 +01:00
parent acfa6d1ce4
commit dd7459bdcf
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386
1 changed files with 6 additions and 0 deletions

View File

@ -827,6 +827,12 @@ mod tests {
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();
assert_eq!(response.status(), Status::Ok);
assert_eq!(response.content_type(), Some(ContentType::HTML));
assert!(response.body_string().unwrap().contains("/vks/v1/by-keyid"));
}
#[test]