Skip to content

Does not find factories with default suffix example #993

Open
@meric426

Description

@meric426

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions