Added the generateStubs docs

This commit is contained in:
Marcin Grzejszczak
2019-08-07 21:54:24 +02:00
parent 48cdd556f7
commit 7b60206c77
6 changed files with 88 additions and 1 deletions

View File

@@ -799,6 +799,7 @@ inProgress: false
and:
List<Contract> contracts = [Contract.make {
request {
inProgress()
url("/foo")
method("PUT")
headers {
@@ -828,6 +829,7 @@ inProgress: false
then:
yamlContracts.size() == 1
YamlContract yamlContract = yamlContracts.first()
yamlContract.inProgress == true
yamlContract.request.url == "/foo"
yamlContract.request.method == "PUT"
yamlContract.request.headers.find { it.key == "foo" && it.value == "bar" }

View File

@@ -10,6 +10,9 @@ priority: 8
#tag::ignored[]
ignored: true
#end::ignored[]
#tag::in_progress[]
inProgress: true
#end::in_progress[]
#tag::request[]
request:
#end::request[]