Rocket/examples/raw_sqlite/src/tests.rs

13 lines
297 B
Rust
Raw Normal View History

use super::rocket;
use rocket::testing::MockRequest;
use rocket::http::Method::*;
#[test]
fn hello() {
let rocket = rocket();
let mut req = MockRequest::new(Get, "/");
let mut response = req.dispatch_with(&rocket);
assert_eq!(response.body_string(), Some("Rocketeer".into()));
}