Created
September 12, 2013 12:29
-
-
Save ddelponte/6536552 to your computer and use it in GitHub Desktop.
runAsync mocking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service.metaClass.runAsync = { it() } | |
// The first line basically says ‘take the code within the runAsync closure, and just execute it’. | |
// http://fbflex.wordpress.com/2011/10/26/grails-quick-tip-testing-spock-interactions-wrapped-by-the-executor-plugin/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment