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 trial
Charles Danielsson
4,209 PointsNot Have Content "This is what I'm doing today"
In the example in the video, our method sets the default option on description to "This is my todo list."
options[:description] ||="This is my todo list."
When testing using the method later, we check to make sure the page does not have the content "This is what I'm doing today" for a blank title.
expect(page).to_not have_content("This is what I'm doing today.")
I believe we should be testing for the phrase "This is my todo list.", no? As is the page will never have the content "This is what I'm doing today".