use rocket::http::Status;
use rocket::local::blocking::Client;

#[test]
fn check_blog() {
    let client = Client::tracked(super::super::rocket()).unwrap();
    let response = client.get("/blog").dispatch();

    assert_eq!(response.status(), Status::Ok);
    assert_eq!(
        response.headers().get_one("Content-Type").unwrap(),
        "text/plain; charset=utf-8"
    );
    assert_eq!(response.into_string(), Some("Blog".into()));
}
