def withWindow(Map options, Closure specification, Closure block) always returns null(despite its documentation telling otherwise) because it potentially applies the closure to multiple windows. This makes it quite unusable in Spocks expect: or then: blocks.
As changing the behaviour of this function may break comptibility, maybe we can work around this by introducing a new option value to only execute the closure on the first matching window. Something like options.first.
def withWindow(Map options, Closure specification, Closure block)always returnsnull(despite its documentation telling otherwise) because it potentially applies the closure to multiple windows. This makes it quite unusable in Spocksexpect:orthen:blocks.As changing the behaviour of this function may break comptibility, maybe we can work around this by introducing a new option value to only execute the closure on the first matching window. Something like
options.first.