mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-31 17:07:01 +02:00
various cleanups
This commit is contained in:
@@ -166,7 +166,7 @@ mod tests {
|
||||
#[test]
|
||||
fn test_with_reason() {
|
||||
let resp = HTTPOk.response();
|
||||
assert_eq!(resp.reason(), "");
|
||||
assert_eq!(resp.reason(), "OK");
|
||||
|
||||
let resp = HTTPBadRequest.with_reason("test");
|
||||
assert_eq!(resp.status(), StatusCode::BAD_REQUEST);
|
||||
|
Reference in New Issue
Block a user