def rescue_action_in_public(exception)
case exception
when LoginException
headers[“Status”] = “401 Unauthorized”
goto_login
…
so I
def login!
…
raise LoginException
end
but I don’t know how to test it under functionals test
when ran rake test:functionals always show me exception so can’t to test
step 2 goto_login