Refactor the rspec using let