Does not find factories with default suffix example
Opened this issue · 0 comments
meric426 commented
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
- annotate version: 3.2.0
- rails version: 7.0.6
- ruby version: 3.2.2