Please work

This commit is contained in:
Marcin Grzejszczak
2018-10-05 18:31:31 +02:00
parent 107ed195f1
commit e9bbf44856
5 changed files with 5 additions and 5 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 as String).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 as String).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 as String).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 as String).matches('[0-9]{5}')
}
}

View File

@@ -35,7 +35,7 @@ class ResponseSpec extends Specification {
property = value(producer(regex("[0-9]{5}")))
}
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}'
}
}