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
end
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
end
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs