Session in tests

I am currently catching up on some tests for controllers

However most pages are hidden behind a login

the before filter that checks if the user is logged in does so by
referencing the session hash

I can not access the session before making a request

How do I seed the session?

Keynan P. wrote:

I am currently catching up on some tests for controllers

However most pages are hidden behind a login

the before filter that checks if the user is logged in does so by
referencing the session hash

I can not access the session before making a request

How do I seed the session?

seed?

You need to stick something like
@request.session[:user_logged_in] = true

in your test (before you make the request obviously)

Fred