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 trialHafsa MEHDAOUI
Courses Plus Student 728 Pointsthe Visit method undefined
this is not actually a question but a hint, for someone who encountred the same probleme as me when running the command in the console
rspec spec/features/todo_lists/create_spec.rb
and didnt work cause he's using the latests versions of rails and rspec.
you could actually notice before all that, that in your spec folder, there is actually two files instead of one, "rails-helper" and "spec-helper", and the content of "spec-helper" in the course is actually moved into the "rails-helper" file in the new version of rspec. so what you have to do to get the method "visit" recognised, is by adding
require 'spec_helper'
to the "create_spec.rb" file. cause by default, you found " require 'rails_helper', you should add the two together.
2 Answers
johnhunter
12,964 PointsThanks! This saved me some time :)
Andrew Rady
20,880 PointsMan thanks John, that helped me get past a headache!!!
Hafsa MEHDAOUI
Courses Plus Student 728 PointsHafsa MEHDAOUI
Courses Plus Student 728 PointsYou welcome dude :)