mirror of https://github.com/fafhrd91/actix-web
added test funtion for full_uri method
This commit is contained in:
parent
8cff116b1c
commit
6d2aac1df3
|
@ -975,4 +975,11 @@ mod tests {
|
|||
|
||||
assert!(format!("{:?}", req).contains(location_header));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn check_full_uri() {
|
||||
let req = TestRequest::with_uri("/api?id=4&name=foo").to_http_request();
|
||||
|
||||
assert_eq!(req.full_uri(), "http://localhost:8080/api?id=4&name=foo");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue