Maybe now?

This commit is contained in:
Marcin Grzejszczak
2018-10-05 18:35:11 +02:00
parent 3743701515
commit ab44d8935a
4 changed files with 4 additions and 4 deletions

View File

@@ -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'() {

View File

@@ -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}/)
}
}

View File

@@ -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}/)
}
}

View File

@@ -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}/)
}
}