Closed GoogleCodeExporter closed 8 years ago
Are you saying that you want more than what's supported in
spock-0.5-groovy-1.7? spock-0.6-groovy-1.8-SNAPSHOT already supports full
GStrings in @Unroll, but some people have complained that it's an incompatible
change, so we might roll it back for the 0.6 release.
Original comment by pnied...@gmail.com
on 29 Oct 2011 at 10:50
Didn't get any feedback. As I understand it, we already support the requested
feature.
Original comment by pnied...@gmail.com
on 17 Feb 2012 at 3:09
Does it mean that the upcoming 0.6 release will support full GStrings in
@Unroll?
Original comment by mgrys...@gmail.com
on 18 Feb 2012 at 10:45
0.6-groovy-1.8-SNAPSHOT has had full support for GStrings for a while. For 0.6
final we've changed plans a bit, but you can still do:
@Unroll
def "#person.name.toUppercase() is #person.age years old"() { ... }
That is, you can call properties and zero-arg methods. If you need more than
that, you can always add another data variable:
where:
a << ...
b << ...
c = Math.max(a, b)
Original comment by pnied...@gmail.com
on 18 Feb 2012 at 7:54
Original issue reported on code.google.com by
mgrys...@gmail.com
on 29 Oct 2011 at 2:53