Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix matched effort policy spec for factory bot rails
The change introduced in factory bot rails 6.4.3 impacts this spec. thoughtbot/factory_bot_rails@0040292#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R168 One we switch to Factory bot Rails > 6.4.3 we began to see Bullet errors when running this spec. It's no clear right now if the errors relate to the spec or the code, but switching all the `build_stubbed` to `create` stops the issue, which might suggest it is the spec. Whilst there is a performance hit to using `create` this policy relies on the `ActivityPolicy` which in turns loads objects from the database, making stubbing pretty complicated. For the moment, we will take the perfromance hit for working specs.
- Loading branch information