aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zotapi.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-08-20 15:23:35 +0200
committerHarald Eilertsen <haraldei@anduin.net>2018-08-20 15:23:35 +0200
commite3161f2e8561089d6db72f2a36011c7a5b54f320 (patch)
treea31194f28092a00bd4411fa8d1fe267aee7c9e1f /tests/zotapi.rs
parent321ed90f9091e3e65b1bb8102dded76355d1c544 (diff)
downloadrust-zotapi-e3161f2e8561089d6db72f2a36011c7a5b54f320.tar.gz
rust-zotapi-e3161f2e8561089d6db72f2a36011c7a5b54f320.tar.bz2
rust-zotapi-e3161f2e8561089d6db72f2a36011c7a5b54f320.zip
Use builder pattern to construct items.
Diffstat (limited to 'tests/zotapi.rs')
-rw-r--r--tests/zotapi.rs2
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();
}