I generally find that most developers are fairly aware of and willing to apply the DRY principal on their main codebase. However, when I look through people’s tests, I find that the old copy/paste habit has found it’s way into their workflow (again?). I’m using “their code” to save face here…I found this in my own code and started looking for ways to clean it up. So, let’s take a look at an example of how we can remove some duplication from our specs.