Skip to content

Multiple Assignment in when: and anything in cleanup: #493

Closed

Description

@robfletcher

Originally reported on Google Code with ID 371

What steps will reproduce the problem? If possible, provide source code and
stack trace.
1. use multiple assignment in when: 
2. put anything in cleanup:

What version of Spock and Groovy are you using?
spock-core v0.7-groovy-2.0
gmavenplus-plugin v1.2
groovy v2.3.3
java v1.7.0_60

Please provide any additional information below. You can also assign
labels.

import spock.lang.Specification
class ListReturnExample extends Specification {

    def "no worky" ()
    {
        when:
        def (String foo, int bar) = ["foo", 42] // problem line
        def baz = "baz"

        then:
        true

        cleanup:
        println "cleanup"
    }
}

Reported by shawn.gardner on 2014-07-18 02:01:45

Activity

  1. robfletcher commented on Aug 30, 2015

    @robfletcher
    ContributorAuthor

    Reported by pniederw on 2014-07-20 09:30:12

    • Status changed: Fixed
    • Labels added: Milestone-1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions