Issue description
Power assertion has broken for non-static inner class after upgrade to Groovy 3.0.8.
How to reproduce
class PowerAssertionRegressionGroovy380Spec extends Specification {
def test() {
expect:
new NonStaticInnerClass() == null
}
class NonStaticInnerClass {
String toString() { "nsi" }
}
}
fails wtih Groovy 3.0.7 with:
Condition not satisfied:
new NonStaticInnerClass() == null
| |
nsi false
Expected :null
Actual :
With Groovy 3.0.8 there is:
Condition not satisfied:
new NonStaticInnerClass() == null
|
null
Expected :
Actual :
The same assertion with plain Groovy (without Spock) works fine.
Additional Environment information
Spock master, Groovy 3.0.8
Additional information
The test for that case was added in autumn 2020 in #930.
Sample failure: https://github.com/spockframework/spock/pull/1316/checks?check_run_id=2475170792#step:6:130
Issue description
Power assertion has broken for non-static inner class after upgrade to Groovy 3.0.8.
How to reproduce
fails wtih Groovy 3.0.7 with:
With Groovy 3.0.8 there is:
The same assertion with plain Groovy (without Spock) works fine.
Additional Environment information
Spock master, Groovy 3.0.8
Additional information
The test for that case was added in autumn 2020 in #930.
Sample failure: https://github.com/spockframework/spock/pull/1316/checks?check_run_id=2475170792#step:6:130