You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/release_notes.adoc
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,10 @@ spockPull:1910[]
53
53
When subclassing `SingleResponseGenerator` it does not make sense to override the first method, and it does not make sense to call the second method from somewhere else.
54
54
spockPull:1910[]
55
55
56
+
* The default Groovy method `.with {}` no longer has the Spock special behavior of treating it as a condition block.
57
+
This will break tests using `.with {}` in assertions.
58
+
Use the Spock `with(yourObject) {}` instead of `yourObject.with {}` or prefix it `!!` to fix your test.
59
+
56
60
* Calling `old(...)` with multiple arguments is now a compilation error. Previously the additional arguments were simply ignored.
57
61
* Creating `GroovyMock`/`GroovyStub`/`GroovySpy` for an already mocked type will now fail.
58
62
* Creating a global `GroovyMock`/`GroovyStub`/`GroovySpy` when <<parallel_execution.adoc#parallel-execution, parallel execution>> is enabled,
@@ -61,9 +65,9 @@ will now require that the spec is annotated with <<parallel_execution.adoc#isola
61
65
62
66
=== Misc
63
67
64
-
* Fix handling of condition method calls and Groovy `with()` method spockPull:2162[]
65
-
** This could break tests using `with()` which relied on the bug in the past spockIssue:2269[]
66
-
** Use the Spock `with(yourObject)` instead of `yourObject.with()` or prefix it `!!` to fix your test
68
+
* Fix handling of condition method calls and Groovy `.with {}` method spockPull:2162[]
69
+
** This will break tests using `.with {}` in assertions which relied on the bug in the past spockIssue:2269[]
70
+
** Use the Spock `with(yourObject) {}` instead of `yourObject.with {}` or prefix it `!!` to fix your test
67
71
* Fix module testing not working due to call to JUnit internal API spockPull:2187[]
68
72
** This also fixes the usage of Spock with JUnit 6 in OSGi environments
0 commit comments