Refactoring rspec tests using let