1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 08:57:00 +02:00

add scopes

This commit is contained in:
Nikolay Kim
2019-03-03 21:02:01 -08:00
parent 8502c32a3c
commit 34171fa7f5
6 changed files with 1004 additions and 4 deletions

View File

@@ -312,7 +312,9 @@ mod tests {
#[test]
fn test_preds() {
let r = TestRequest::default().method(Method::TRACE).to_request();
let r = TestRequest::default()
.method(Method::TRACE)
.to_http_request();
assert!(Not(Get()).check(&r,));
assert!(!Not(Trace()).check(&r,));