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 trialNicholas Cordoba
4,998 PointsError message is displaying more content then it is suppose to.
Adding todo items displays an error with no content (FAILED - 1) is successful with valid content
Failures:
1) Adding todo items displays an error with no content Failure/Error: expect(page).to have_content("Content can't be blank.") expected to find text "Content can't be blank." in "There was a problem adding that todo list item. 1 error prohibited this todo item from being saved: Content can't be blank Content" # ./spec/features/todo_items/create_spec.rb:32:in `block (2 levels) in <top (required)>'
Finished in 0.13804 seconds 2 examples, 1 failure
Failed examples:
rspec ./spec/features/todo_items/create_spec.rb:24 # Adding todo items displays an error with no content
This is the error message. Any ideas? Thank you for the help.
Nicholas Cordoba
4,998 PointsMy apologizes for this incredibly late response. My problem, when I follow the video, at the testing to see if the text box is empty. It seems that instead of resetting the input box, it leaves the code there and continues the error message as well.
There was a problem adding that todo list item. 1 error prohibited this todo item from being saved: Content can't be blank Content
That is what is given, but I think the program should reset the box. However, I am not really sure.
thisandthat
3,220 Pointsthisandthat
3,220 PointsWhat exactly are you trying to accomplish? Please be a little more specific so I can help :)