Skip to content

Conversation

yesthesoup
Copy link
Contributor

Please feel free to suggest different/better wording.

see PR #76 which prompted this update for context.


#### factory_bot and factory_bot_rails

Ensure you have the gem in your Gemfile, and that `require: false` is not present, otherwise the `packs-rails` FactoryBot integration will not be run upon application/environment load.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least in my case it was specifically the gem 'factory_bot_rails', require: false, I left the factory_bot with the require and it works fine, could you give it a try so we can narrow the problem even more?

Copy link
Contributor Author

@yesthesoup yesthesoup Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me I actually don't have factory_bot specifically listed in the gemfile because it's already a dependency of factory_bot_rails - but I can add that detail thank you. I would assume installers of packs-rails would be using factory_bot_rails but they could not be I suppose in some cases

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that you mention it I'm even unclear on how different require true/false would work when factory_bot_rails interacts with factory_bot

@shageman shageman merged commit 658fed5 into rubyatscale:main Dec 7, 2023
@shageman
Copy link
Contributor

shageman commented Dec 7, 2023

Thank you!

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 this pull request may close these issues.

3 participants