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 trialMichael Mac Coisdeala
4,212 PointsI'm running Rails 4.2.3. When I ran bin/rspec spec/features/todo_lists/create_spec.rb it failed.
The failure/error read: expect(page).to have_content("New todo_list") expected to find text "New todo_list" in "New Todo List Title Description Back" # ./spec/features/todo_lists/create_spec.rb:7:in `block (2 levels) in <top (required)>'
1 Answer
Felix Sonnenholzer
14,654 PointsThats because it generates the scaffold a little bit different.
You have to adjust your test to:
expect(page).to have_content("New Todo List")
It might happen sometimes, because you are running a different rails version. But just take a look at your page and try to find those little differences.
Hope that helped
Pablo Xabron
8,111 PointsPablo Xabron
8,111 PointsThank you, this helped me.