Skip to content

withWindow(Map, Closure, Closure) always returns null #476

Description

@fettlaus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions