thoughtbot / factory_bot_rails

Factory Bot ♥ Rails

Home Page:https://thoughtbot.com/services/ruby-on-rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails ignoring factory

carlosmedrano97 opened this issue · comments

After running the rails g model command, a factory is not generated instead a fixture is created

Hi @carlosmedrano27 - can you provide a code snippet? What was the exact Rails command that you ran? If you have any factory_bot specific configuration in your project, can you share it here?

I manually tested the generator in a new Rails application and was not able to reproduce this behavior. It might be worth checking that you have factory_bot_rails in the development section of your Gemfile.

I am going to close this issue for now. Feel free to reopen if there is additional context that would help us reproduce this behavior.

Thank you!