Refactored todo list creation in Rspec test