From 30ecca212085573cded306a1c535abf5f117fa92 Mon Sep 17 00:00:00 2001 From: Sonja Mathias Date: Mon, 22 Jan 2024 12:46:12 +0100 Subject: [PATCH] Fix projects controller tests --- test/functional/projects_controller_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 21a8552a8c..30a924a4cb 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -646,7 +646,7 @@ def test_admin_can_edit project = pal.projects.first get :show, params: { id: project } assert_select 'div.box_about_actor p.pals' do - assert_select 'strong', text: 'SysMO-DB PALs:', count: 1 + assert_select 'strong', text: 'SciLifeLab Data Centre PALs:', count: 1 assert_select 'a', count: 1 assert_select 'a[href=?]', person_path(pal), text: 'A PAL', count: 1 end @@ -708,7 +708,7 @@ def test_admin_can_edit assert_select 'strong', text: I18n.t('asset_gatekeeper').pluralize+':', count: 0 assert_select 'a[href=?]', person_path(gatekeeper), text: gatekeeper.name, count: 0 - assert_select 'strong', text: 'SysMO-DB PALs:', count: 1 + assert_select 'strong', text: 'SciLifeLab Data Centre PALs:', count: 1 assert_select 'a[href=?]', person_path(pal), text: pal.name, count: 1 assert_select 'strong', text: 'Project administrators:', count: 1 @@ -730,7 +730,7 @@ def test_admin_can_edit test 'no pals displayed for project with no pals' do get :show, params: { id: projects(:myexperiment_project) } assert_select 'div.box_about_actor p.pals' do - assert_select 'strong', text: 'SysMO-DB PALs:', count: 1 + assert_select 'strong', text: 'SciLifeLab Data Centre PALs:', count: 1 assert_select 'a', count: 0 assert_select 'span.none_text', text: "No PALs for this #{I18n.t('project')}", count: 1 end