Merge branch '1.2.x'

This commit is contained in:
Andy Wilkinson
2018-03-27 14:13:45 +01:00
5 changed files with 38 additions and 40 deletions

View File

@@ -121,7 +121,7 @@ public class RestAssuredRestDocumentationIntegrationTests {
"build/generated-snippets/curl-snippet-with-cookies/curl-request.adoc"),
is(snippet(asciidoctor()).withContents(codeBlock(asciidoctor(), "bash")
.content(String.format("$ curl 'http://localhost:"
+ tomcat.getPort() + "/' -i \\%n"
+ tomcat.getPort() + "/' -i -X GET \\%n"
+ " -H 'Accept: application/json' \\%n"
+ " -H 'Content-Type: " + contentType + "' \\%n"
+ " --cookie 'cookieName=cookieVal'")))));