mirror of https://github.com/rwf2/Rocket.git
12 lines
306 B
Rust
12 lines
306 B
Rust
|
use super::rocket;
|
||
|
use rocket::testing::MockRequest;
|
||
|
use rocket::http::Method::*;
|
||
|
|
||
|
#[test]
|
||
|
fn fairings() {
|
||
|
let rocket = rocket();
|
||
|
let mut req = MockRequest::new(Get, "/");
|
||
|
let mut response = req.dispatch_with(&rocket);
|
||
|
assert_eq!(response.body_string(), Some("Hello, fairings!".into()));
|
||
|
}
|