tweak add_json_fail test

This commit is contained in:
Corentin Henry
2017-05-31 17:41:48 -07:00
parent 80a80379d3
commit 20f2896ab4

View File

@@ -855,6 +855,6 @@ mod tests {
let some_url = "https://google.com/";
let r = client.post(some_url);
let json_data = MyStruct{};
assert_eq!(format!("{}", r.json(&json_data).unwrap_err()), "nope".to_string());
assert!(r.json(&json_data).unwrap_err().is_serialization());
}
}