From f09b96a524f9dff2fe47d8864d184c1055368f6f Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Tue, 20 Sep 2016 08:35:21 +0200 Subject: [PATCH] Added missing delegates to AST to Contract --- .../org/springframework/cloud/contract/spec/Contract.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-contract-spec/src/main/groovy/org/springframework/cloud/contract/spec/Contract.groovy b/spring-cloud-contract-spec/src/main/groovy/org/springframework/cloud/contract/spec/Contract.groovy index 7e424d019d..6db92a53a7 100644 --- a/spring-cloud-contract-spec/src/main/groovy/org/springframework/cloud/contract/spec/Contract.groovy +++ b/spring-cloud-contract-spec/src/main/groovy/org/springframework/cloud/contract/spec/Contract.groovy @@ -47,7 +47,7 @@ class Contract { /** * Factory method to create the DSL */ - static Contract make(Closure closure) { + static Contract make(@DelegatesTo(Contract) Closure closure) { Contract dsl = new Contract() closure.delegate = dsl closure()