Are there any examples of plugins defining Fabricators?
I found something here that may be relevant: How to lazy load fabricators · Issue #167 · paulelliott/fabrication · GitHub
It says that it clears existing fabricators…
Are there any examples of plugins defining Fabricators?
I found something here that may be relevant: How to lazy load fabricators · Issue #167 · paulelliott/fabrication · GitHub
It says that it clears existing fabricators…
It’s actually quite simple. 
spec/plugin_helper.rb to your plugin if you haven’t got that already.spec/fabricators and add your factories in there*rb files in plugin_helper.rb
J’ai eu besoin de définir des fabricateurs personnalisés dans mon plugin également et j’ai été surpris que nous n’ayons pas déjà un support adéquat pour cela.
Une fois que le PR ci-dessus aura été fusionné, vos fabricateurs seront automatiquement requis tant qu’ils existent dans le dossier spec/fabricators du plugin.