class HelloSpock extends spock.lang.Specification { | |
def "length of Spock's and his friends' names"() { | |
expect: | |
name.size() == length | |
where: "something" | |
name || length | |
"Kirk" || 4 | |
"Scotty" || 6 | |
} | |
} | |
----- | |
class HelloSpock extends spock.lang.Specification { | |
def "length of Spock's and his friends' names"() { | |
expect: | |
name.size() == length | |
where: | |
"something" | |
name || length | |
"Kirk" || 4 | |
"Scotty" || 6 | |
} | |
} |