1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-23 18:11:11 +00:00

update test

This commit is contained in:
Nikolay Kim 2017-12-20 23:36:52 -08:00
parent 0567e6fb0a
commit 18f3841783

View file

@ -740,12 +740,11 @@ mod tests {
#[test]
fn test_basic_builder() {
let resp = HttpResponse::Ok()
.status(StatusCode::NO_CONTENT)
.header("X-TEST", "value")
.version(Version::HTTP_10)
.finish().unwrap();
assert_eq!(resp.version(), Some(Version::HTTP_10));
assert_eq!(resp.status(), StatusCode::NO_CONTENT);
assert_eq!(resp.status(), StatusCode::OK);
}
#[test]