Forum: Ruby on Rails Session in Integration Test

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.
1a345f94bcb2f52facd07c424728fa26?d=identicon&s=25 Tim Morgan (Guest)
on 2007-07-03 21:54
(Received via mailing list)
Can someone tell me why my session is cleared out following a get in
my integration test?

  def test_session
    get '/'
    session[:foo] = 'bar'
    assert_equal 'bar', session[:foo] # passes
    get '/'
    assert_equal 'bar', session[:foo] # fails
This topic is locked and can not be replied to.