I'm writing functional tests with Spock and Geb in Grails 2.5.6 using the remote-control plugin.
I have something like this in a when
block:
String someString
remote {
someString = SomeDomain.findByName("Some Name").someValue
}
In the then
block that follows, someString
is null
. Trying to debug the issue, a breakpoint in the remote
block is not hit.
What am I doing wrong?