Closed matiaseche closed 11 months ago
Thanks @matiaseche for the PR.
My team is dedicating two working sessions each week to review open PRs. We've been using a two-prong approach to tackle the newest open PRs and the oldest open PRs during each session.
Fixes #68.
Trying to make the integration work with Minitest I realized the paths were never added because
app.config.respond_to?(:factory_bot)
always returnedfalse
.If this is moved in the railtie to a
config.after_initialize
then it works as expected.I could not write tests since I didn't find any, I am hoping to get advice on how to do these tests here :wink: What I did was:
In that list we should also see every pack path + "spec/factories", but it is not there.
With this fix it will work as expected, and it will also support minitest folder structure
test/factories
.