Posted about 10 years ago by Philip Ingram
Ok. I admit I have a love hate relationship with testing. My framework is Test::Unit and mocha. I’ve sworn off factories for now, until they prove more useful then fixtures. As of this writing, they haven’t in my humble.
I found a forum post from google, that lead me to another post, that had a comment (thanks mike) with this final solution. I take no credit for the code, but i do think it needs more ‘play’ on the interwebs. All i did was wrap it into a helper.