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 trialjitendra goyal
3,752 Pointsdisplays an error no content
Adding todo items is successful with vaild content displays an error no content (FAILED - 1)
Failures:
1) Adding todo items displays an error no content
Failure/Error: expect(page).to have_content("There was a problem adding that todo list item.")
expected to find text "There was a problem adding that todo list item." in "There was a problem adding that todo item."
# ./spec/features/todo_items/create_spec.rb:34:in block (3 levels) in <top (required)>'
# ./spec/features/todo_items/create_spec.rb:33:in
block (2 levels) in <top (required)>'
Finished in 2.72 seconds 2 examples, 1 failure
Failed examples:
rspec ./spec/features/todo_items/create_spec.rb:28 # Adding todo items displays an error no content
Randomized with seed 53083
1 Answer
Andrew Stelmach
12,583 PointsIt's a typo you haven't spotted (easily done); expected text = "There was a problem adding that todo list item.", displayed text = "There was a problem adding that todo item."