diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2021-07-04 22:40:34 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2021-07-04 22:40:34 +0200 |
commit | 216e7de7b0401db59e470253726f86b0f380323a (patch) | |
tree | d53b235de26ad97299febf4a355e46aa678220d4 /tests | |
parent | d782334d31e2925432677d1e05d000f350aa925d (diff) | |
download | rust-zotapi-216e7de7b0401db59e470253726f86b0f380323a.tar.gz rust-zotapi-216e7de7b0401db59e470253726f86b0f380323a.tar.bz2 rust-zotapi-216e7de7b0401db59e470253726f86b0f380323a.zip |
Fix tests an update for newer rust.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/zotapi.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/zotapi.rs b/tests/zotapi.rs index ba279a4..af1d524 100644 --- a/tests/zotapi.rs +++ b/tests/zotapi.rs @@ -81,8 +81,8 @@ fn create_new_post() { fn create_new_post_with_title() { let m = mock_with_authorization("POST", "/api/z/1.0/item/update") .match_body(Matcher::AllOf(vec![ - Matcher::UrlEncoded("title".to_string(), "A+title".to_string()), - Matcher::UrlEncoded("body".to_string(), "This+is+a+test".to_string()), + Matcher::UrlEncoded("title".to_string(), "A title".to_string()), + Matcher::UrlEncoded("body".to_string(), "This is a test".to_string()), ])) .with_status(200) .with_header("content-type", "application/json") @@ -360,7 +360,7 @@ fn fetch_members_of_group_by_group_name() { let m = mock_with_authorization("GET", "/api/z/1.0/group_members") .match_query(Matcher::UrlEncoded( "group_name".into(), - "Friends+of+pain".into(), + "Friends of pain".into(), )) .with_status(200) .with_header("content-type", "application/json") |