Forum: RSpec session id in a rails 2.3 app

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Chris F. (Guest)
on 2009-06-05 01:27
(Received via mailing list)
I'm in the process of converting an application from an older version of
rails to rails 2.3.2, and I'm running into some problems with my specs

There's a part of the application that references the current session
non-optional there.  It's referenced in a before filter in
application_controller.  Rails throws up some very big, loud deprication
warnings, to change the code from

  session.session_id  to request.session_options[:id]

However, when I do so, a whole crop of my specs start failing with an
evaluating nil.[]  -- request.session_options seems to be coming back
This seems to be the following bug in Rails:

However, the suggested workaround does not actually help.  any thoughts?
This topic is locked and can not be replied to.