DataMapper + Factory Girl

I’ve been toying with Factory Girl lately. The code I’m currently working on needs to generate lots of data before tests run and Factory Girl is handling this well compared to fixtures or coding my own data generators. So, in some unrelated toying with DataMapper, I came to wonder if Factory Girl and DataMapper play nicely together.

Turns out they do! The only hitch is you need dm-validations in addition to dm-core. Since no one seems to have written this up yet, I thought I’d share my results.

This entry was posted in Code, Curated and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Comments will be sent to the moderation queue.