ctran / annotate_models

Annotate Rails classes with schema and routes info
Other
4.43k stars 622 forks source link

Does not find factories with default suffix example #993

Open meric426 opened 1 year ago

meric426 commented 1 year ago

The default suffixed generator example in https://github.com/thoughtbot/factory_bot_rails states:

config.generators do |g|
  g.factory_bot suffix: "factory"
end

This configuration will result in factories being created with this pattern:

spec/factories/<pluralized_model_name>_factory.rb and we only have support for pluralized model name without suffix.

Version