diff --git a/app/controllers/admin/base_controller.rb b/app/controllers/admin/base_controller.rb index fe652b2db..17e75785a 100644 --- a/app/controllers/admin/base_controller.rb +++ b/app/controllers/admin/base_controller.rb @@ -14,7 +14,7 @@ module Admin end def user_for_paper_trail - current_admin_user ? current_admin_user.id_role_username : 'guest' + current_admin_user ? current_admin_user.id_role_username : 'anonymous' end end end \ No newline at end of file diff --git a/app/controllers/admin/sessions_controller.rb b/app/controllers/admin/sessions_controller.rb index c0b47e687..a4a286cc1 100644 --- a/app/controllers/admin/sessions_controller.rb +++ b/app/controllers/admin/sessions_controller.rb @@ -33,7 +33,7 @@ module Admin end def user_for_paper_trail - current_admin_user ? current_admin_user.id_role_username : 'guest' + current_admin_user ? current_admin_user.id_role_username : 'anonymous' end end end \ No newline at end of file diff --git a/app/controllers/registrant/sessions_controller.rb b/app/controllers/registrant/sessions_controller.rb index 6dabd8e8c..db403b2a5 100644 --- a/app/controllers/registrant/sessions_controller.rb +++ b/app/controllers/registrant/sessions_controller.rb @@ -107,6 +107,6 @@ class Registrant::SessionsController < Devise::SessionsController end def user_for_paper_trail - current_registrant_user.present? ? current_registrant_user.id_role_username : 'guest' + current_registrant_user.present? ? current_registrant_user.id_role_username : 'anonymous' end end \ No newline at end of file diff --git a/app/controllers/registrant_controller.rb b/app/controllers/registrant_controller.rb index 2d5d3f0d7..9e8c1998e 100644 --- a/app/controllers/registrant_controller.rb +++ b/app/controllers/registrant_controller.rb @@ -17,6 +17,6 @@ class RegistrantController < ApplicationController end def user_for_paper_trail - current_registrant_user.present? ? current_registrant_user.id_role_username : 'guest' + current_registrant_user.present? ? current_registrant_user.id_role_username : 'anonymous' end end \ No newline at end of file diff --git a/app/controllers/registrar/base_controller.rb b/app/controllers/registrar/base_controller.rb index 23a5a9954..499d44594 100644 --- a/app/controllers/registrar/base_controller.rb +++ b/app/controllers/registrar/base_controller.rb @@ -36,7 +36,7 @@ class Registrar end def user_for_paper_trail - current_registrar_user ? current_registrar_user.id_role_username : 'guest' + current_registrar_user ? current_registrar_user.id_role_username : 'anonymous' end end end diff --git a/app/controllers/registrar/sessions_controller.rb b/app/controllers/registrar/sessions_controller.rb index b3998f046..5a7bce72f 100644 --- a/app/controllers/registrar/sessions_controller.rb +++ b/app/controllers/registrar/sessions_controller.rb @@ -180,7 +180,7 @@ class Registrar end def user_for_paper_trail - current_registrar_user ? current_registrar_user.id_role_username : 'guest' + current_registrar_user ? current_registrar_user.id_role_username : 'anonymous' end end end \ No newline at end of file diff --git a/test/integration/admin/protected_area_test.rb b/test/integration/admin/protected_area_test.rb index b13e335ce..59edb04c3 100644 --- a/test/integration/admin/protected_area_test.rb +++ b/test/integration/admin/protected_area_test.rb @@ -1,7 +1,7 @@ require 'test_helper' class AdminAreaProtectedAreaTest < ActionDispatch::IntegrationTest - def test_unauthenticated_user_is_asked_to_authenticate_when_navigating_to_protected_area + def test_anonymous_user_is_asked_to_authenticate_when_navigating_to_protected_area visit admin_domains_url assert_text 'You need to sign in before continuing' assert_current_path new_admin_user_session_path diff --git a/test/integration/registrar/protected_area_test.rb b/test/integration/registrar/protected_area_test.rb index 967a37dec..48de0bbb8 100644 --- a/test/integration/registrar/protected_area_test.rb +++ b/test/integration/registrar/protected_area_test.rb @@ -1,7 +1,7 @@ require 'test_helper' class RegistrarAreaProtectedAreaTest < ActionDispatch::IntegrationTest - def test_unauthenticated_user_is_asked_to_authenticate_when_navigating_to_protected_area + def test_anonymous_user_is_asked_to_authenticate_when_navigating_to_protected_area visit registrar_domains_url assert_text 'You need to sign in before continuing' assert_current_path new_registrar_user_session_path