Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not find factories with default suffix example #993

Open
meric426 opened this issue Aug 3, 2023 · 0 comments · May be fixed by #994
Open

Does not find factories with default suffix example #993

meric426 opened this issue Aug 3, 2023 · 0 comments · May be fixed by #994

Comments

@meric426
Copy link

meric426 commented Aug 3, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant