diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2018-08-20 15:23:35 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2018-08-20 15:23:35 +0200 |
commit | e3161f2e8561089d6db72f2a36011c7a5b54f320 (patch) | |
tree | a31194f28092a00bd4411fa8d1fe267aee7c9e1f /tests | |
parent | 321ed90f9091e3e65b1bb8102dded76355d1c544 (diff) | |
download | rust-zotapi-e3161f2e8561089d6db72f2a36011c7a5b54f320.tar.gz rust-zotapi-e3161f2e8561089d6db72f2a36011c7a5b54f320.tar.bz2 rust-zotapi-e3161f2e8561089d6db72f2a36011c7a5b54f320.zip |
Use builder pattern to construct items.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/zotapi.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zotapi.rs b/tests/zotapi.rs index f8991f7..0437313 100644 --- a/tests/zotapi.rs +++ b/tests/zotapi.rs @@ -75,7 +75,7 @@ fn create_new_post() { .create(); let z = zotapi::client(&format!("http://{}", mockito::SERVER_ADDRESS), "testuser", "test1234"); - let res = z.create_item("This is a test"); + let _res = z.item().body("This is a test").create(); m.assert(); } |