FactoryGirl.definition_file_paths = %w(custom_factories_directory) FactoryGirl.find_definitions)
but I didn't try it yet.
Reason I am asking the question is that I see myself some disadvantages.
The main disadvantage is that the factories become essentially public API.
ANother issue is Name Clashes
Last but not least, needing a custom Factory in ApplicationB needs or a change for the Engine or they still need
to be defined in ApplicationB leading probably quite quickly to factory duplication Anyway.
Note that I am the author of Both applications. At this moment EngineA is only used in ApplicationB, but this might change very soon.
Regards,
Nathan