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