RubyFlow The Ruby and Rails community linklog

Refactoring Tips: Don't Trust Your Unit Tests

Before you start making any changes, make sure you have an integration test covering the part of the application you’re changing. While unit tests might be useful on a small scale refactorings, they usually break if you change the layout of your code, even a little bit. This is mostly because a big portion of the unit tests will depend on the exact API of your classes, instead of their behavior. Continue reading<p>

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in