Added the generateStubs docs
This commit is contained in:
@@ -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" }
|
||||
|
||||
@@ -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[]
|
||||
|
||||
Reference in New Issue
Block a user