Hey Culley,
Fabrication does some things differently from FactoryGirl. Most
notably FactoryGirl has a really cool concept around traits and
different syntax strategies to make the syntax look like some of the
other libraries out there. Fabrication has explicit support for
Mongoid, AR, Sequel, and DataMapper whereas FactoryGirl doesn't try to
work around the differences in the libraries. Fabrication also has
support for regular Ruby objects and will let you specify init
parameters to pass to "new", which you can't do with FactoryGirl. It
also has its own transforms that you can use in the bundled cucumber
steps, which are pretty powerful. We use Fabrication on all our
projects at Hashrocket so I can tell you that it is definitely a
stable library. The 2.0 branch of Fabrication has the lazy generation
of associations removed and is focusing more on performance and
improving the orm interactions. That release should be coming out in
the next few weeks, so don't get too comfy with that feature if you
decide to go that way.
If you do decide to use Fabrication, feel free to email me anytime if
you have issues. I usually respond pretty quickly to questions and
issues.
--Paul
On May 7, 2:07 pm, Culley Smith <
culley.sm...@gmail.com> wrote:
> Hey all,
>
> Anyone here using Fabrication instead of FactoryGirl?
>
> I am considering a switch, because I've been running into some issues and I
> think it might be related to FactoryGirl associations. Fabrication allows
> for "lazy" associations. But, before I start migrating my tests to
> Fabrication, I wanted to query the group and see whether folks out there
> were happ(y/ier) with Fabrication v. FactoryGirl.
>
> Thanks,
> Culley