Skip to content

Commit fe33c75

Browse files
author
Ronald Holshausen
committedApr 5, 2020
feat: fix for failing test #1061
1 parent c509048 commit fe33c75

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎core/support/src/test/groovy/au/com/dius/pact/core/support/expressions/ExpressionParserSpec.groovy

+4-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ class ExpressionParserSpec extends Specification {
104104
@SuppressWarnings('UnnecessaryBooleanExpression')
105105
def 'with a defined type, converts the expression into the correct type'() {
106106
expect:
107-
ExpressionParser.parseExpression('${expression}', type, [ resolveValue: { value } ] as ValueResolver) == result
107+
ExpressionParser.parseExpression('${expression}', type, [
108+
resolveValue: { value.toString() }
109+
] as ValueResolver) == result
108110

109111
where:
110112

@@ -116,7 +118,7 @@ class ExpressionParserSpec extends Specification {
116118
'100' | DataType.INTEGER || 100L
117119
'100' | DataType.FLOAT || 100.0f
118120
'100' | DataType.DECIMAL || 100.0
119-
100 | DataType.RAW || 100
121+
100 | DataType.RAW || '100'
120122
100 | DataType.STRING || '100'
121123
100 | DataType.INTEGER || 100L
122124
100 | DataType.FLOAT || 100.0f

0 commit comments

Comments
 (0)
Please sign in to comment.