Repo Added
|
Files
253
|
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. The issue here appears to be caused by `build_stubbed` objects no longer behaving like database objects (which they should not have been in the first place), with the most straightforward fix being switching to `create` which utilises the database. 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.
6815 of 6925 relevant lines covered (98.41%)
967.49 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|