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