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.

Ruby User Authentication with Rails Password Hashing and Sign In Creating the User Model: Part 1

Alice Huang
Alice Huang
20,335 Points

Failure/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?

Maciej Czuchnowski
Maciej Czuchnowski
36,440 Points

Alice, you have to show us your whole project, because the cause may be lurking in various places ;)

kabir k
kabir k
Courses Plus Student 18,036 Points

Hi Maciej,

Can you take a look at my error I am getting here and show how to fix it.

Thanks.

1 Answer

John Simoneau
PLUS
John Simoneau
Courses Plus Student 8,105 Points

I 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...