Sometimes you discover a minor bug and just want to jump straight in to fix it, however, I think it’s usually best to check the test coverage, and if that area isn't tested or has light coverage you can write a regression spec first to reproduce the bug and then fix it confidently, knowing you won't make the same mistake again!

Discussion (0)

To comment you need to sign up for a free account or sign in.

Unlock 7 Hotwire tricks every Rails dev should know ⚡️

Level up your Rails skills with 7 powerful Turbo techniques in my free Hotwire Cheatsheet. Subscribe for updates on new videos, courses & more — no spam, just gems.