Rocket/lib/tests/mount_point.rs

13 lines
211 B
Rust

extern crate rocket;
#[test]
#[should_panic]
fn bad_dynamic_mount() {
rocket::ignite().mount("<name>", vec![]);
}
#[test]
fn good_static_mount() {
rocket::ignite().mount("abcdefghijkl_mno", vec![]);
}