Improve test.
This commit is contained in:
parent
acfa6d1ce4
commit
dd7459bdcf
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue