Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

David Ho
1,482 PointsUL and table changes problem to be fixed!
HI Guys, How to overcome this error. Kindly show what and where to change.
Here is the error : Failures:
1) content todo items successful if valid content Failure/Error: within("ul.todo_items") do Capybara::ElementNotFound: Unable to find css "ul.todo_items" # ./spec/features/todo_items/create_spec.rb:22:in `block (2 levels) in <top (required)>'
2) Visit todo items display item content when list have items Failure/Error: expect(page.all("ul.todo_items li").size).to eq(2)
expected: 2
got: 0
(compared using ==)
# ./spec/features/todo_items/index_spec.rb:31:in `block (2 levels) in <top (required)>'
Failed examples:
rspec ./spec/features/todo_items/create_spec.rb:15 # content todo items successful if valid content rspec ./spec/features/todo_items/index_spec.rb:26 # Visit todo items display item content when list have items
THanks
2 Answers
Laura Fabiola Cabrera
11,951 PointsI had the first error. I just changed within("ul.todo_items") do to within("table.todo_items") do
Since we used <table> in the index file.
I'm not sure about the second one.

Seth Kroger
56,403 PointsThe 2nd can be fixed with: expect(page.all("table.todo_items tr").size)