mirror of https://github.com/rwf2/Rocket.git
Update hello_world example test.
This commit is contained in:
parent
a0784b4b15
commit
fe9e2256a3
|
@ -5,4 +5,14 @@ fn hello_world() {
|
|||
let client = Client::tracked(super::rocket()).unwrap();
|
||||
let response = client.get("/").dispatch();
|
||||
assert_eq!(response.into_string(), Some("Hello, world!".into()));
|
||||
|
||||
let response = client.get("/hello/world").dispatch();
|
||||
assert_eq!(response.into_string(), Some("Hello, world!".into()));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn hello_mir() {
|
||||
let client = Client::tracked(super::rocket()).unwrap();
|
||||
let response = client.get("/hello/%D0%BC%D0%B8%D1%80").dispatch();
|
||||
assert_eq!(response.into_string(), Some("Привет, мир!".into()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue