Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAlice Huang
20,335 PointsFailure/Error after running bin/rake
2) todo_lists/index renders a list of todo_lists Failure/Error: assert_select "tr>td", :text => "Title".to_s, :count => 2 MiniTest::Assertion: Expected exactly 2 elements matching "tr > td", found 0.. <0> expected but was <2>. # ./spec/views/todo_lists/index.html.erb_spec.rb:20:in `block (2 levels) in <top (required)>'
I actually got this at the end of the last course for this project. Haven't been able to figure it out so far. Can anyone please help?
1 Answer
John Simoneau
Courses Plus Student 8,105 PointsI believe this particular error is fixed by making the change on the spec/views/todo_lists/index.html.erb_spec.rb
file here
Came across this link by Jim Withington in another thread that highlights some of the discrepancies of the project files and our own files from the ODOT project...
https://github.com/jwithington/odot/commit/c1d520fa80d79ab15eb9c2bfd81e0af4cf5d8bc9
That's the part that fixed it for me anyway...
Maciej Czuchnowski
36,441 PointsMaciej Czuchnowski
36,441 PointsAlice, you have to show us your whole project, because the cause may be lurking in various places ;)