Why write tests for Rails apps?
Unit tests are your friend. The sooner you make peace with the fact that your quality of life will drastically increase when you unit test your code, the better. Seriously.
This excerpt was taken from the official Rails documentation.
Remember, unit tests should be FIRST – fast, isolated, repeatable, self-verifying, and timely.