cleaning the 'rspec test code'