2. >views > todo_list > index Give each table row an ID corresponding to the todo list: We use a method called dom id, and send in the item that we want:
<tr id="<%= dom_id(todo_list) %>">
This will assign an id to it, called "todo_list" and then an underscore and the id of the todo_list (in our database).
We can tell capybara to pass this on a certain id:
visit "/todo_lists"
within "#todo_list_#{todo_list.id}" do
click_link "Edit"
3. Remember to define the todo_list variable
todo_list = options[:todo_lists]
4. Run the test
5. We'll need a todo_list object so we'll use this feature. This will create the todo_list for me for each of the tests, and then assign it to a variable.