views:

22

answers:

1

So we have a unit test which is failing where we attempt to call the save method on a model. This for some reason returns true when we run the method in reality. We've mocked the domain in the setUp method.

Does anyone know why the heck the save method is returning null?

Source Code here: http://gist.github.com/485365

We're running Grails 1.3.1

A: 

this might be an issue if you are using 1.3.3.

http://jira.codehaus.org/browse/GRAILS-6482

hvgotcodes
Grails 1.3.1 for us.
Zachary Spencer
did you originally specify 1.3.1?
hvgotcodes
Nope, I just added it to the question. I didn't downvote. Not sure who did.
Zachary Spencer
@Zachary Spencer -- ok -- im still stuck on 1.2.0 :(, but i knew of mockDomain issues in 1.3.3 so just posted the link. Wierd, google is not being helpful. would try the mailing list or irc...
hvgotcodes