ldap0r/src/tests.rs
finga 6d247c63ba Prepare rocket requisites to start with
A basic index page with basic configuration and a rudimentary test.
2020-07-03 16:10:46 +02:00

10 lines
305 B
Rust

use rocket::{self, local::Client, routes};
#[test]
fn index() {
let rocket = rocket::ignite().mount("/", routes![super::index]);
let client = Client::new(rocket).unwrap();
let mut response = client.get("/").dispatch();
assert_eq!(response.body_string(), Some("Hello, ldap0r!".into()));
}