Rspec refactor