Session in Integration Test

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs