Test fetching the iD frame when not logged in

This commit is contained in:
Tom Hughes 2022-07-26 17:38:56 +01:00
parent f4749eccf1
commit e9887f88ed

View file

@ -520,4 +520,12 @@ class SiteControllerTest < ActionDispatch::IntegrationTest
assert_template "id"
assert_template :layout => false
end
# Test the id frame when not logged in
def test_id_without_login
get id_path
assert_response :redirect
assert_redirected_to login_path(:referer => "/id")
end
end