Spock’s where block makes testing similar conditions for a bunch of inputs very straightforward. Recently I was working on the Groovy language definition for the Prism syntax highlighter and wanted something similar.
Last week was the London Groovy & Grails Exchange 2012 where I gave a talk called Grails for hipsters about integrating Grails apps with some of the buzziest current tools & techniques. Part of what I talked about was my approach to handling pre-processed front-end resources in Grails apps. In the demo app for my talk I used LESS & CoffeeScript but everything I discusses applies equally to SASS, Stylus, TypeScript, etc.