Skip to content

Commit 6d88608

Browse files
author
Ronald Holshausen
committedApr 10, 2020
chore: updated Groovy consumer test to use path matcher
1 parent 257ccc9 commit 6d88608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎consumer/pact-jvm-consumer-groovy/src/test/groovy/au/com/dius/pact/consumer/groovy/ExampleGroovyConsumerV3PactTest.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ExampleGroovyConsumerV3PactTest {
2828
given('another provider state', [valueA: 'A', valueB: 100])
2929
given('a third provider state', [valueC: localDate.toString()])
3030
uponReceiving('a retrieve Mallory request')
31-
withAttributes(method: 'get', path: '/mallory', query: [name: 'ron', status: regexp(~/good|bad/, 'good'),
31+
withAttributes(method: 'get', path: ~/\/mallory/, query: [name: 'ron', status: regexp(~/good|bad/, 'good'),
3232
date: date('yyyy-MM-dd')])
3333
willRespondWith(
3434
status: 200,

0 commit comments

Comments
 (0)
Please sign in to comment.