File tree 1 file changed +6
-6
lines changed
spock-specs/src/test/groovy/org/spockframework/smoke/mock
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,8 @@ then:
405
405
406
406
then :
407
407
TooFewInvocationsError e = thrown()
408
- e. message. trim() == """
408
+ def normalizedMessage = e. message. normalize(). trim()
409
+ normalizedMessage == """
409
410
Too few invocations for:
410
411
411
412
1 * list.add({
@@ -420,22 +421,21 @@ Unmatched invocations (ordered by similarity):
420
421
421
422
1 * list.add(Person)
422
423
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
+ \t Condition not satisfied:
425
426
426
427
firstname == 'Willam'
427
428
| |
428
429
Willam T. false
429
430
3 differences (66% similarity)
430
431
Willam( T.)
431
432
Willam(---)
432
- )
433
- org.spockframework.runtime.ConditionNotSatisfiedError(Condition not satisfied:
433
+
434
+ \t Condition not satisfied:
434
435
435
436
age == 35
436
437
| |
437
438
45 false
438
- )
439
439
""" . trim()
440
440
}
441
441
You can’t perform that action at this time.
0 commit comments