Refactor manage_todo_spec.rb