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 Adding User Support to Our Application Scoping Todo Lists

Error when testing for relationship user -> todo_lists

In Scoping TodoLists around minute 3:45 Jason is writing a it should have many relationship test. I get this: Failures:

1) Users validations relationships should have many todo_lists Failure/Error: should have_many(:todo_lists)

   undefined method `reflect_on_association' for String:Class

I added this to my user_spec.rb: it { should have_many(:todo_lists)}

Thanks for the help