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 Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Editing Todo Lists

Kathryn Gilbert
Kathryn Gilbert
5,122 Points

test from editing todo_list failed.

Hi, I'm working on the build a todo list application video series in Ruby. I'm on the editing a todo list video and my test failed but I can't figure out why. Help would be amazing! Thanks guys.

You can see my github repo for the project here: https://github.com/ktagilbert/todo-list.

Also, here is the message I get from the command line when using pry-rescue

1) Editing todo lists updates a todo list successfully with correct information
     Failure/Error: let!(:todo_list) { TodoList.create(title: "Groceries", description: "Grocery list.") }

     NameError:
       uninitialized constant TodoList
     # ./spec/features/todo_lists/edit_spec.rb:28:in `block (2 levels) in <top (required)>'

Finished in 0.00075 seconds (files took 0.22099 seconds to load)
1 example, 1 failure

Failed examples:

rspec ./spec/features/todo_lists/edit_spec.rb:45 # Editing todo lists updates a todo list successfully with correct information

1 Answer

Karen Ho
Karen Ho
10,190 Points

I have the same problem, help...