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

Problem with Editing to Todo Lists

I am having a serious issue with Editing Todo Lists. At the point where I'm meant to get an error, but my error is different to Jason Seifer error.

I've been getting:

Failures:

  1) Editing todo lists updates a todo list successfully with correct information
     Failure/Error: todo_list = Todolist.create(title: "My todo list", description: "This is what I'm doing today.")
     NameError:
       uninitialized constant Todolist
     # ./spec/features/todo_lists/edit_spec.rb:5:in `block (2 levels) in <top (required)>'

My code is below. Don't fully understand the error, but it seems to be the =.Todolist.create bit.

describe "Editing todo lists" do
    it "updates a todo list successfully with correct information" do
        todo_list = Todolist.create(title: "My todo list", description: "This is what I'm doing today.")

1 Answer