Refactoring and Rspec