thoughtbot/factory_girl_rails — pull request #64 by urbanautomaton (2012-06-18 14:10:57+00:00)
Title: Hi,

I recently noticed that our factories were being placed in
`spec/factories`, despite our having the following line in our
`config/application.rb`:

g.fixture_replacement :factory_girl, :dir => "test/factories"

I tracked this down to the railtie included with factory_girl_rails,
which overrides any user-specified configuration. It was introduced in
this commit: 97222f2b58531c6f0d38de17496a54e589143f7c

I've added some features and updated the behaviour, so the auto-added
configuration is only applied if none is already specified. It also no
longer specifies the factories directory to be `spec/factories`, but
leaves this up to the generator default. I think this is less confusing
(it certainly took me a while to work out why both my configuration and
the generator default was being ignored).

Just let me know if there's anything else required for this patch to be
accepted... :)

Cheers,
Simon