All the test cases pass using grails 2.0.0
+ git checkout grails-2.0.0;
+ export GRAILS_HOME=...;
+ export PATH=$GRAILS_HOME/bin:$PATH
+ grails clean;
// all pass
+ grails test-app --echoOut UserControllerSpec UserControllerSpockMockSpec UserServiceIntegrationSpec UserServiceIntegrationSpockMockSpec;
The spock unit mock tests seem to work in isolation, but if combined with any other test cases that use Grails Mock they seem to fail. i.e if I run UserControllerSpockMockSpec in isolation it works but if run together with "UserControllerSpec UserControllerSpockMockSpec" it will cause failure..
+ git checkout master;
+ export GRAILS_HOME=...
+ export PATH=$GRAILS_HOME/bin:$PATH
+ grails clean;
// works in isolation
+ grails test-app --echoOut UserControllerSpockMockSpec;
// one test case fails
+ grails test-app --echoOut UserControllerSpec;
// failures in both specs, but UserControllerSpockMockSpec worked in isolation
+ grails test-app --echoOut UserControllerSpec UserControllerSpockMockSpec;
for integration specs the spock Mock tests seem to fail in isolation also..
// fails
+ grails test-app --echoOut UserServiceIntegrationSpec;
// fails
+ grails test-app --echoOut UserServiceIntegrationSpockMockSpec