With a test suite in place, you can refactor with confidence, knowing that your tests will guard against regression. Learn how to leverage your tests while refactoring an existing piece of code.
This is a companion discussion topic for the original entry at https://thoughtbot.com/upcase/videos/refactoring-with-test-coverage