From e9887f88edf37ec164bb4373f7bcb86262b781b6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 26 Jul 2022 17:38:56 +0100 Subject: [PATCH] Test fetching the iD frame when not logged in --- test/controllers/site_controller_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/controllers/site_controller_test.rb b/test/controllers/site_controller_test.rb index 2d47e7de7..ccd8ba254 100644 --- a/test/controllers/site_controller_test.rb +++ b/test/controllers/site_controller_test.rb @@ -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 -- 2.39.5