Skip to content

Commit 761f88e

Browse files
committed
Fix expected message caused by change to MultipleFailuresError
1 parent 9bc6c54 commit 761f88e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: spock-specs/src/test/groovy/org/spockframework/smoke/mock/TooFewInvocations.groovy

+6-6
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ then:
405405

406406
then:
407407
TooFewInvocationsError e = thrown()
408-
e.message.trim() == """
408+
def normalizedMessage = e.message.normalize().trim()
409+
normalizedMessage == """
409410
Too few invocations for:
410411
411412
1 * list.add({
@@ -420,22 +421,21 @@ Unmatched invocations (ordered by similarity):
420421
421422
1 * list.add(Person)
422423
One or more arguments(s) didn't match:
423-
0: There were 2 errors:
424-
org.spockframework.runtime.ConditionNotSatisfiedError(Condition not satisfied:
424+
0: Multiple Failures (2 failures)
425+
\tCondition not satisfied:
425426
426427
firstname == 'Willam'
427428
| |
428429
Willam T. false
429430
3 differences (66% similarity)
430431
Willam( T.)
431432
Willam(---)
432-
)
433-
org.spockframework.runtime.ConditionNotSatisfiedError(Condition not satisfied:
433+
434+
\tCondition not satisfied:
434435
435436
age == 35
436437
| |
437438
45 false
438-
)
439439
""".trim()
440440
}
441441

0 commit comments

Comments
 (0)