From ed42aaef6a13507f813a54ca2ae226055f677af0 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 11 Nov 2019 23:07:10 +0100 Subject: [PATCH] Fix tests --- tests/ruma_api_macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ruma_api_macros.rs b/tests/ruma_api_macros.rs index 40cc030e..ddc7b014 100644 --- a/tests/ruma_api_macros.rs +++ b/tests/ruma_api_macros.rs @@ -4,7 +4,7 @@ pub mod some_endpoint { ruma_api! { metadata { description: "Does something.", - method: GET, // An `http::Method` constant. No imports required. + method: POST, // An `http::Method` constant. No imports required. name: "some_endpoint", path: "/_matrix/some/endpoint/:baz", rate_limited: false, @@ -51,7 +51,7 @@ pub mod newtype_body_endpoint { ruma_api! { metadata { description: "Does something.", - method: GET, + method: PUT, name: "newtype_body_endpoint", path: "/_matrix/some/newtype/body/endpoint", rate_limited: false,