mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 02:19:22 +02:00
update tests
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user