@@ -144,10 +144,11 @@ Feature: Generate Slate documentation from test examples
144144 And the exit status should be 0
145145
146146 Scenario : Example 'Getting a list of orders' docs should look like we expect
147- Then the file "doc/api/_generated_examples.markdown " should contain:
147+ Then the file "doc/api/index.html.md " should contain:
148148 """
149149 ## Getting a list of orders
150150
151+
151152 ### Request
152153
153154 #### Endpoint
@@ -159,7 +160,6 @@ Feature: Generate Slate documentation from test examples
159160
160161 `GET /orders`
161162
162-
163163 #### Parameters
164164
165165
@@ -202,17 +202,20 @@ Feature: Generate Slate documentation from test examples
202202 | page | Current page |
203203
204204
205-
206- ### cURL
207-
208- <code>curl "http://localhost:3000/orders" -X GET \<br> -H "Host: example.org" \<br> -H " Cookie: "</code>
205+ ```shell
206+ curl "http://localhost:3000/orders" -X GET \
207+ -H "Host: example.org" \
208+ -H " Cookie: "
209209 """
210210
211211 Scenario : Example 'Creating an order' docs should look like we expect
212- Then the file "doc/api/_generated_examples.markdown " should contain:
212+ Then the file "doc/api/index.html.md " should contain:
213213 """
214+ # Orders
215+
214216 ## Creating an order
215217
218+
216219 ### Request
217220
218221 #### Endpoint
@@ -225,7 +228,6 @@ Feature: Generate Slate documentation from test examples
225228
226229 `POST /orders`
227230
228-
229231 #### Parameters
230232
231233
@@ -253,38 +255,40 @@ Feature: Generate Slate documentation from test examples
253255
254256
255257
256-
257- ### cURL
258-
259- <code>curl "http://localhost:3000/orders" -d 'name=Order+3&amount=33.0' -X POST \<br> -H "Host: example.org" \<br> -H "Content-Type: application/x-www-form-urlencoded" \<br> -H "Cookie: "</code>
258+ ```shell
259+ curl "http://localhost:3000/orders" -d 'name=Order+3&amount=33.0' -X POST \
260+ -H "Host: example.org" \
261+ -H "Content-Type: application/x-www-form-urlencoded" \
262+ -H "Cookie: "
263+ ```
260264 """
261265
262266 Scenario : Example 'Deleting an order' docs should be created
263- Then the file "doc/api/_generated_examples.markdown " should contain:
267+ Then the file "doc/api/index.html.md " should contain:
264268 """
265269 ## Deleting an order
266270 """
267271
268272 Scenario : Example 'Getting a list of orders' docs should be created
269- Then the file "doc/api/_generated_examples.markdown " should contain:
273+ Then the file "doc/api/index.html.md " should contain:
270274 """
271275 ## Getting a list of orders
272276 """
273277
274278 Scenario : Example 'Getting a specific order' docs should be created
275- Then the file "doc/api/_generated_examples.markdown " should contain:
279+ Then the file "doc/api/index.html.md " should contain:
276280 """
277281 ## Getting a specific order
278282 """
279283
280284 Scenario : Example 'Updating an order' docs should be created
281- Then the file "doc/api/_generated_examples.markdown " should contain:
285+ Then the file "doc/api/index.html.md " should contain:
282286 """
283287 ## Updating an order
284288 """
285289
286290 Scenario : Example 'Getting welcome message' docs should be created
287- Then the file "doc/api/_generated_examples.markdown " should contain:
291+ Then the file "doc/api/index.html.md " should contain:
288292 """
289293 ## Getting welcome message
290294 """
0 commit comments