@@ -144,10 +144,11 @@ Feature: Generate Slate documentation from test examples
144
144
And the exit status should be 0
145
145
146
146
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:
148
148
"""
149
149
## Getting a list of orders
150
150
151
+
151
152
### Request
152
153
153
154
#### Endpoint
@@ -159,7 +160,6 @@ Feature: Generate Slate documentation from test examples
159
160
160
161
`GET /orders`
161
162
162
-
163
163
#### Parameters
164
164
165
165
@@ -202,17 +202,20 @@ Feature: Generate Slate documentation from test examples
202
202
| page | Current page |
203
203
204
204
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: "
209
209
"""
210
210
211
211
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:
213
213
"""
214
+ # Orders
215
+
214
216
## Creating an order
215
217
218
+
216
219
### Request
217
220
218
221
#### Endpoint
@@ -225,7 +228,6 @@ Feature: Generate Slate documentation from test examples
225
228
226
229
`POST /orders`
227
230
228
-
229
231
#### Parameters
230
232
231
233
@@ -253,38 +255,40 @@ Feature: Generate Slate documentation from test examples
253
255
254
256
255
257
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
+ ```
260
264
"""
261
265
262
266
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:
264
268
"""
265
269
## Deleting an order
266
270
"""
267
271
268
272
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:
270
274
"""
271
275
## Getting a list of orders
272
276
"""
273
277
274
278
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:
276
280
"""
277
281
## Getting a specific order
278
282
"""
279
283
280
284
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:
282
286
"""
283
287
## Updating an order
284
288
"""
285
289
286
290
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:
288
292
"""
289
293
## Getting welcome message
290
294
"""
0 commit comments