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 trial

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