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 trialWilson Usman
35,206 Pointsrspec error line 4
Why am i getting this error when running create_spec.rb?
Where I'm at:
require 'spec_helper'
describe "Creating todo lists" do
it "redirects to the todo list index page on success" do
visit "/todo_lists"
click_link "New Todo list"
expect(page).to have_content("New todo_list")
fill_in "Title", with: "My todo list"
fill_in "Description", with: "This is what I'm doing today."
click_button "Create Todo list"
expect(page).to have_content("My todo list")
end
end
Test results:
rspec ./spec/features/todo_lists/create_spec.rb:4 # Creating todo list redirects to the todo list index page on success
4 Answers
Ross Litzenberger
11,706 Pointsdo you have it on github ?
Wilson Usman
35,206 PointsI figured it out Ross. It was a typo where I spelled description wrong when I generated the app
Ross Litzenberger
11,706 PointsAwesome, yes that has happen to me too.
Ross Litzenberger
11,706 PointsAwesome, yes that has happen to me too.