Rocket/core/lib/tests/mount_point.rs
Sergio Benitez ad36b769bc Rename 'rocket::ignite()' to 'rocket::build()'.
...because loading up a Rocket while it's ignited is a bad idea.

More seriously, because 'Rocket.ignite()' will become an "execute
everything up to here" method.
2021-04-08 01:07:52 -07:00

11 lines
188 B
Rust

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