refactor todo list creation in rspec