test: patch method

This commit is contained in:
Jannik Keye 2019-03-14 08:25:42 +01:00
parent 482e3f6011
commit 825056e309
1 changed files with 8 additions and 0 deletions

View File

@ -1398,3 +1398,11 @@ fn test_content_length() {
assert_eq!(response.headers().get(&header), Some(&value));
}
}
#[test]
fn test_patch_method() {
let mut srv = test::TestServer::new(|app| app.handler(|_| HttpResponse::Ok()));
let req = srv.patch().finish().unwrap();
let response = srv.execute(req.send()).unwrap();
assert!(response.status().is_success());
}