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
Jordan Hosmer
3,112 PointsIntegration Testing Friendships Error
I'm having trouble with locating the source of this error.
I thought I had something wrong in routes but it looks correct. Does it have something to do with a different devise? I can upload code if that would help.
Finished tests in 0.115054s, 8.6916 tests/s, 0.0000 assertions/s.
1) Error:
test_that_adding_a_friend_works(AddAFriendTest):
ActionView::Template::Error: undefined method user_session_path' for #<ActionDispatch::Routing::RoutesProxy:0x00000101745de0>
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.12/lib/action_dispatch/routing/routes_proxy.rb:34:inmethod_missing'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.3/lib/devise/controllers/url_helpers.rb:50:in `session_path'
1 Answer
John Paul Ashenfelter
1,118 PointsGlad you solved your problem!
Jordan Hosmer
3,112 PointsJordan Hosmer
3,112 PointsOk, looks like I just needed to carry on with the lesson. I'm guessing that adding that encrypted password to the users fixture did the trick - but it appeared as a different error than yours.... not sure, but seems fixed. (fingers crossed, I'm moving on!)