Skip to content

Commit bdc6e8d

Browse files
committed
Fix confusing section in docs/README
It looked like it was telling you to add both `// TEST[continued]` and `// TESTRESPONSE` to the same snippet which doesn't do anything. Instead it was trying to say that you can have many snippets included into the same test by doing: ``` request1 ``` // CONSOLE ``` response1 ``` // TESTRESPONSE `` request2 ``` // CONSOLE // TEST[continued] ``` response2 ``` // TESTRESPONSE
1 parent 8b989f9 commit bdc6e8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/README.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ are tests even if they don't have `// CONSOLE`.
3636
text then the test fails. If the response includes `Warning` headers that
3737
aren't expected then the test fails.
3838
* `// TESTRESPONSE`: Matches this snippet against the body of the response of
39-
the last test. If the response is JSON then order is ignored. With
40-
`// TEST[continued]` you can make tests that contain multiple command snippets
41-
and multiple response snippets.
39+
the last test. If the response is JSON then order is ignored. If you add
40+
`// TEST[continued]` to the snippet after `// TESTRESPONSE` it will continue
41+
in the same test, allowing you to interleve requests with responses to check.
4242
* `// TESTRESPONSE[s/foo/bar/]`: Substitutions. See `// TEST[s/foo/bar]`.
4343
* `// TESTRESPONSE[_cat]`: Add substitutions for testing `_cat` responses. Use
4444
this after all other substitutions so it doesn't make other substitutions

0 commit comments

Comments
 (0)