I have a functional test and am trying to set a session value
session[:employee_id] = 1 #@fred.id
assert_equal 1, assigns(:jobs).size
when I try to run this test I get the following error
TypeError: Symbol as array index
if I hard code the employee_id in the controller and remove the session
call in the test, it works perfectly.
seems to be doing the same thing as me about 1/2 way down the page, so
it doesn’t seem too unreasonable. Anyone know why this isn’t working?