Skip to content

Does not find factories with default suffix example #993

@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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @meric426

      Issue actions

        Does not find factories with default suffix example · Issue #993 · ctran/annotate_models