JUnit rules seem to be supported in Spock, so it should work out of the box.