Skip to content

Commit 8110e0f

Browse files
committed
Add missing breaking change to release notes
1 parent 4623068 commit 8110e0f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/release_notes.adoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ spockPull:1910[]
5353
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.
5454
spockPull:1910[]
5555

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+
5660
* Calling `old(...)` with multiple arguments is now a compilation error. Previously the additional arguments were simply ignored.
5761
* Creating `GroovyMock`/`GroovyStub`/`GroovySpy` for an already mocked type will now fail.
5862
* 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
6165

6266
=== Misc
6367

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
6771
* Fix module testing not working due to call to JUnit internal API spockPull:2187[]
6872
** This also fixes the usage of Spock with JUnit 6 in OSGi environments
6973

0 commit comments

Comments
 (0)