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 Write Our First Tests

Tom Warhurst
Tom Warhurst
2,442 Points

How do I fix this console error?

So I'm following along in the video but I'm getting this error:

  1) Creating todo lists displays and error when the todo list has no title
     Failure/Error: vist  "/todo_lists"
     NoMethodError:
       undefined method `vist' for #<RSpec::Core::ExampleGroup::Nested_1:0x007fbd645acde0>
     # ./spec/features/todo_lists/create_spec.rb:20:in `block (2 levels) in <top (required)>'

Finished in 0.22247 seconds
2 examples, 1 failure

Failed examples:

rspec ./spec/features/todo_lists/create_spec.rb:17 # Creating todo lists displays and error when the todo list has no title

Randomized with seed 25532

Does anyone have a fix?

Thankyou!

1 Answer

Seth Reece
Seth Reece
32,867 Points

Hi Tom,

You have a typo in your test. You have vist instead of visit.