Please work
This commit is contained in:
@@ -108,7 +108,7 @@ class ContractSpec extends Specification {
|
|||||||
property = value(consumer(regex("[0-9]{5}")))
|
property = value(consumer(regex("[0-9]{5}")))
|
||||||
}
|
}
|
||||||
then:
|
then:
|
||||||
(property.serverValue as String).matches(/[0-9]{5}/)
|
(property.serverValue as String).matches('[0-9]{5}')
|
||||||
}
|
}
|
||||||
|
|
||||||
def 'should set a description'() {
|
def 'should set a description'() {
|
||||||
|
|||||||
@@ -15,6 +15,6 @@ class InputSpec extends Specification {
|
|||||||
property = $(consumer(regex("[0-9]{5}")))
|
property = $(consumer(regex("[0-9]{5}")))
|
||||||
}
|
}
|
||||||
then:
|
then:
|
||||||
(property.serverValue as String).matches(/[0-9]{5}/)
|
(property.serverValue as String).matches('[0-9]{5}')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,6 @@ class OutputMessageSpec extends Specification {
|
|||||||
property = $(consumer(regex("[0-9]{5}")))
|
property = $(consumer(regex("[0-9]{5}")))
|
||||||
}
|
}
|
||||||
then:
|
then:
|
||||||
(property.serverValue as String).matches(/[0-9]{5}/)
|
(property.serverValue as String).matches('[0-9]{5}')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,6 @@ class RequestSpec extends Specification {
|
|||||||
property = value(consumer(regex("[0-9]{5}")))
|
property = value(consumer(regex("[0-9]{5}")))
|
||||||
}
|
}
|
||||||
then:
|
then:
|
||||||
(property.serverValue as String).matches(/[0-9]{5}/)
|
(property.serverValue as String).matches('[0-9]{5}')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class ResponseSpec extends Specification {
|
|||||||
property = value(producer(regex("[0-9]{5}")))
|
property = value(producer(regex("[0-9]{5}")))
|
||||||
}
|
}
|
||||||
then:
|
then:
|
||||||
(property.clientValue as String).matches(/[0-9]{5}/)
|
(property.clientValue as String).matches('[0-9]{5}')
|
||||||
(property.serverValue as Pattern).pattern() == '[0-9]{5}'
|
(property.serverValue as Pattern).pattern() == '[0-9]{5}'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user