I recently upgraded to Rails 2.3.8 from 2.1.0 (not sure if that has
anything to do with it though), and my integration tests are no longer
able to do anything requiring the user to be logged in. The tests can
log in successfully, but when another request is made, the user is no
longer recognized as logged in.
When I inspect the session just after logging in, I see this:
{:user_id=>4,
"flash"=>{:notice=>"Logged in successfully"},
:session_id=>"76df7358fb3dd5f5ff97f15e4a3c652a"}
When I do another request, eg get "/home", the session contains only
this:
{:return_to=>"/home",
:session_id=>"76df7358fb3dd5f5ff97f15e4a3c652a"}
This problem only exists within the tests... when I manually visit the
site, everything works perfectly. I have upgraded restful_authentication
plugin, I have gone through the whole process with the debugger, I have
tried everything I can think of to find the problem, but I'm totally
stumped. What could be causing this?
Thanks!
Jack
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.