Exception Testing using Spock in grails

Testing was never so easy and intuitive before the use of Spock. Earlier when I was using grails unit testing, it never attracted me to write more and more test cases but with Spock you always keen to test each and every line of your code, testing the exceptions is one of them. You can always test the exceptions in grails unit test...

by Uday Pratap Singh
Tag: testing in spock