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
Ho avuto la necessità di definire dei fabricator personalizzati anche nel mio plugin e sono rimasto sorpreso dal fatto che non avessimo già un supporto adeguato per questo.
Una volta che la PR sopra sarà stata unita, i tuoi fabricator verranno automaticamente richiesti finché esisteranno nella cartella spec/fabricators del plugin.