atom feed20 messages in org.codehaus.grails.userRe: [grails-user] which spock plugin ...
FromSent OnAttachments
Roshan DawraniDec 19, 2011 2:05 am 
Roshan DawraniDec 19, 2011 2:24 am 
ld...@ldaley.comDec 19, 2011 2:46 am 
Roshan DawraniDec 19, 2011 2:52 am 
ld...@ldaley.comDec 19, 2011 2:55 am 
Sam CarrDec 19, 2011 3:00 am 
Roshan DawraniDec 19, 2011 3:10 am 
Roshan DawraniDec 19, 2011 3:13 am 
Roshan DawraniDec 19, 2011 3:35 am 
Roshan DawraniDec 19, 2011 4:32 am 
Roshan DawraniDec 19, 2011 4:47 am 
Roshan DawraniDec 19, 2011 5:03 am 
Roshan DawraniDec 19, 2011 5:12 am 
Roshan DawraniDec 19, 2011 5:50 am 
Roshan DawraniDec 19, 2011 7:24 am 
Roshan DawraniDec 19, 2011 7:38 am 
Roshan DawraniDec 19, 2011 8:32 am.zip
ld...@ldaley.comDec 20, 2011 9:06 am 
Roshan DawraniDec 21, 2011 11:33 am 
Luke DaleyDec 21, 2011 11:46 am 
Subject:Re: [grails-user] which spock plugin to use with Grails 2.0?
From:Roshan Dawrani (rosh@gmail.com)
Date:Dec 19, 2011 3:13:15 am
List:org.codehaus.grails.user

On Mon, Dec 19, 2011 at 4:31 PM, Sam Carr <samc@mac.com> wrote:

Note that your Spock tests should subclass Specification, not UnitSpec with Grails 2. Then you should use the @TestFor and @Mock annotations to hook into Grails' new test support. So a controller unit test might start as below. See the Grails 2.0 testing docs for more information.

Hi Sam, I haven't switched to using Grails new test support, but I just checked with Luke and it is not a must. So I assume, even using the previous 1.3.7 style test support is supported, but I am running into an issue with that.