mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 07:53:00 +01:00
update tests
This commit is contained in:
parent
8791c0f880
commit
23cfa649f4
@ -7,8 +7,6 @@
|
||||
* HttpResponse builder's methods `.body()`, `.finish()`, `.json()`
|
||||
return `HttpResponse` instead of `Result`
|
||||
|
||||
* Use more ergonomic `actix_web::Error` instead of `http::Error` for `HttpResponseBuilder::body()`
|
||||
|
||||
* Use more ergonomic `actix_web::Error` instead of `http::Error` for `ClientRequestBuilder::body()`
|
||||
|
||||
* Router cannot parse Non-ASCII characters in URL #137
|
||||
|
@ -233,7 +233,7 @@ mod tests {
|
||||
use http::header;
|
||||
use futures::Async;
|
||||
|
||||
use with::with;
|
||||
use with::With;
|
||||
use handler::Handler;
|
||||
|
||||
impl PartialEq for JsonPayloadError {
|
||||
@ -297,7 +297,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_with_json() {
|
||||
let mut handler = with(|data: Json<MyObject>| data);
|
||||
let mut handler = With::new(|data: Json<MyObject>| data);
|
||||
|
||||
let req = HttpRequest::default();
|
||||
let err = handler.handle(req).as_response().unwrap().error().is_some();
|
||||
|
Loading…
Reference in New Issue
Block a user