Ran
|
Files
246
|
Run time
6s
|
Badge
Embed ▾
README BADGES
|
github
Fix matched effort policy spec for factory bot rails The change introduced in factory bot rails 6.4.3 impacts this spec. https://github.com/thoughtbot/factory_bot_rails/commit/004029289#diff-b33563055ac04c6bf87428ed5106870f5R168 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.
6675 of 6755 relevant lines covered (98.82%)
988.48 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|