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 trialBarreston Robinson
5,724 Pointserror when running bin/rspec spec/features/todo_lists/create_spec.rb
deprecation warnings into errors, giving you the full backtrace.
2 deprecation warnings total
Finished in 0.16872 seconds 1 example, 1 failure
Failed examples:
rspec ./spec/features/todo_lists/create_spec.rb:4 # Creating todo lists redirects to the todo list index page on success
Randomized with seed 38156
WHAT IS WRONG?
MY CODE FOR create_spec.rb file:
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("New Todo list")
end
end
Alan Michels
15,645 PointsAlan Michels
15,645 PointsYou need to use a colon after the with keyword, not a semicolon.
fill_in "Description" , with; "This is what I'm doing today."
Should be:
fill_in "Description", with: "This is what I'm doing today."