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 trialNiki Macomber
4,803 PointsODOT user authentication rake errors
Any ideas regarding how to fix these errors? (I've been at it for a few days and am not having any luck)
Failures:
1) UsersController POST create with valid params sets the flash success messag e ?[31mFailure/Error:?[0m ?[31mexpect(flash[:success]).to eq("Thanks for sign ing up!")?[0m ?[31m?[0m ?[31mexpected: "Thanks for signing up!"?[0m ?[31m got: nil?[0m ?[31m?[0m ?[31m(compared using ==)?[0m ?[36m # ./spec/controllers/users_controller_spec.rb:75:in `block (4 levels) in <top (required)>'?[0m
2) Viewing todo items displays item content when a todo list has items ?[31mFailure/Error:?[0m ?[31mwithin "table.todo_items" do?[0m ?[31mCapybara::Ambiguous?[0m: ?[31mAmbiguous match, found 2 elements matching css "table.todo_items"?[0 m ?[36m # ./spec/features/todo_items/index_spec.rb:26:in `block (2 levels) in <top (required)>'?[0m
3) Viewing todo items displays the title of the todo list ?[31mFailure/Error:?[0m ?[31mwithin("div.content h1") do?[0m ?[31mCapybara::ElementNotFound?[0m: ?[31mUnable to find css "div.content h1"?[0m ?[36m # ./spec/features/todo_items/index_spec.rb:8:in `block (2 levels) in < top (required)>'?[0m
4) Adding todo items is successful with valid content ?[31mFailure/Error:?[0m ?[31mwithin("table.todo_items") do?[0m ?[31mCapybara::Ambiguous?[0m: ?[31mAmbiguous match, found 2 elements matching css "table.todo_items"?[0 m ?[36m # ./spec/features/todo_items/create_spec.rb:12:in `block (2 levels) in <top (required)>'?[0m
Finished in 3.21 seconds ?[31m113 examples, 4 failures, 5 pending?[0m
1 Answer
Kevin Lozandier
Courses Plus Student 53,747 PointsHi, Niki Macomber:
For something like this that's ultimately a test involving a variety of things involving your app, please create a Github repo of the current state of your app associated with this problem.
That's the best way for me and others to help you solve this particular problem. It'll also help us give you the advice you need to avoid dealing with this problem in the future.