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 trialShihan Rehman
141 PointsI'm getting a routing error when I try to run RSPEC tests
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
Here is the error:
Finished in 0.46456 seconds 1 example, 1 failure
Failed examples:
rspec ./spec/features/todo_lists/create_spec.rb:5 # Creating todo lists redirects to the todo list index page on success
Shihan Rehman
141 PointsShihan Rehman
141 PointsNevermind I solved it!