From e3161f2e8561089d6db72f2a36011c7a5b54f320 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 20 Aug 2018 15:23:35 +0200 Subject: Use builder pattern to construct items. --- tests/zotapi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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(); } -- cgit v1.2.3