refactored rspec to remove duplicate title information and started using let