groovy/groovy-core — pull request #9 by ColinHarrington (2011-11-23 16:50:08+00:00)
Title: GROOVY-5139: GroovyTestCase's shouldFail {...} should return the throwable and not the enclosed message

http://jira.codehaus.org/browse/GROOVY-5139

As a part of GroovyTestCase shouldFail should return the entire throwable and not just the enclosed message. There may be other items on the exception that bears inspection, assertion.

The easy workaround to fix existing code is to tack a '?.message' on existing tests.