Export to GitHub

spock - issue #371

Multiple Assignment in when: and anything in cleanup:


Posted on Jul 18, 2014 by Helpful Giraffe

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"
}

}

Comment #1

Posted on Jul 20, 2014 by Grumpy Cat

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Module-Core Milestone-1.0