Introduction
Testing helps make sure your Rails app works correctly and keeps working as you add new features.
When you want to check if a new feature works before sharing it.
When you fix a bug and want to be sure it stays fixed.
When you update Rails or gems and want to confirm nothing breaks.
When you want to safely change code without fear of breaking things.
When you want to automate checks instead of testing manually every time.