From ba14bc48026901a658313f0901ec34b3e2fcb77b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 16 Dec 2018 17:23:08 +0000 Subject: [PATCH] Don't hardcode expected text (#3848). git-svn-id: http://svn.redmine.org/redmine/trunk@17760 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/timelog_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index 572a4d937..67b596744 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -342,7 +342,7 @@ class TimelogControllerTest < Redmine::ControllerTest } assert_response 403 - assert_select 'p[id=?]', 'errorExplanation', :text => 'Your role is not allowed to log time for other users' + assert_select 'p[id=?]', 'errorExplanation', :text => I18n.t(:error_not_allowed_to_log_time_for_other_users) end def test_create_and_continue_at_project_level @@ -622,7 +622,7 @@ class TimelogControllerTest < Redmine::ControllerTest } assert_response 403 - assert_select 'p[id=?]', 'errorExplanation', :text => 'Your role is not allowed to log time for other users' + assert_select 'p[id=?]', 'errorExplanation', :text => I18n.t(:error_not_allowed_to_log_time_for_other_users) end def test_get_bulk_edit