X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a566589c1becb18ad2d12623d0ff240ea279d8e6..9b0767b80fcd2ad919ea09277eed921580ad1b1a:/test/controllers/site_controller_test.rb?ds=sidebyside 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