Real Life Refactoring of RSpec Files

Refactoring and writing tests are both critical skills to being a programmer. Learning best practices and reading docs are important components of those abilities, but actually implementing them on a real-life project can be a difficult skill to acquire without directly shadowing someone.
So I decided to show the real-life progression of some new controller specs I wrote and refactored for a first-hand look at the process.

Link: https://dzone.com/articles/real-life-refactoring-of-rspec-files?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev