Refactor the rspec test

Use varible to replace the wordy but identical title in every test