From e386906d712833a331c7cbc159395ea7259b9a46 Mon Sep 17 00:00:00 2001 From: Terry Raimondo Date: Tue, 6 Jun 2017 14:50:59 +0200 Subject: [PATCH 1/2] Fix Slate template Addresses PR #338 --- templates/rspec_api_documentation/slate_example.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/rspec_api_documentation/slate_example.mustache b/templates/rspec_api_documentation/slate_example.mustache index 4b31cd0d..01fafb9f 100644 --- a/templates/rspec_api_documentation/slate_example.mustache +++ b/templates/rspec_api_documentation/slate_example.mustache @@ -9,7 +9,7 @@ #### Endpoint {{# requests}} -``` +```plaintext {{ request_method }} {{ request_path }} {{ request_headers_text }} ``` @@ -50,7 +50,7 @@ None known. ### Response -``` +```plaintext {{ response_headers_text }} {{ response_status }} {{ response_status_text}} ``` From de16a14fb5a2555f61a6dcb880247df6092b4b99 Mon Sep 17 00:00:00 2001 From: Terry Raimondo Date: Tue, 6 Jun 2017 15:48:13 +0200 Subject: [PATCH 2/2] Update feature for Slate --- features/slate_documentation.feature | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/features/slate_documentation.feature b/features/slate_documentation.feature index 87c8d317..86e1c5fb 100644 --- a/features/slate_documentation.feature +++ b/features/slate_documentation.feature @@ -153,7 +153,7 @@ Feature: Generate Slate documentation from test examples #### Endpoint - ``` + ```plaintext GET /orders Host: example.org ``` @@ -168,7 +168,7 @@ Feature: Generate Slate documentation from test examples ### Response - ``` + ```plaintext Content-Type: application/json Content-Length: 137 200 OK @@ -220,7 +220,7 @@ Feature: Generate Slate documentation from test examples #### Endpoint - ``` + ```plaintext POST /orders Host: example.org Content-Type: application/x-www-form-urlencoded @@ -246,7 +246,7 @@ Feature: Generate Slate documentation from test examples ### Response - ``` + ```plaintext Content-Type: text/html;charset=utf-8 Content-Length: 0 201 Created