This message was imported from the Ruby/Rails Modularity Slack server. Find more info in the import thread.
Message originally sent by slack user U71TN2WF04X
Is anyone using Minitest and FactoryBot with packs? I found that packs-rails has an integration setup with FactoryBot for rspec, so I tried to include minitest, but I failed. I posted an issue about it here
So, I realized the extension of FactoryBot in the packs-rails gem was not working as expected, I created a PR fixing this and adding minitest support (include test/factories paths)
I upgraded packs-rails to 0.0.4 now that this pull request has been merged and factories defined within a pack are no longer being registered. Which is strange to me because when I look at Rails.application.config.factory_bot.definition_file_paths the pack’s factory directories are present. am I missing some other configuration?
Hey <@U7242JFKJGS>, unfortunately my PR broke this, it turns out my configuration was wrong and that was the case for it not working. It is being addressed here https://github.com/rubyatscale/packs-rails/pull/76
Apologies for the incovenience!