Forum: RSpec session id in a rails 2.3 app

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1b32ae81cae0813e933ca2f8be830c9f?d=identicon&s=25 Chris Flipse (Guest)
on 2009-06-04 23: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
ID;
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
error
evaluating nil.[]  -- request.session_options seems to be coming back
nil.
This seems to be the following bug in Rails:
https://rails.lighthouseapp.com/projects/8994/tick...

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