Skip to content

Commit

Permalink
Fix projects controller tests
Browse files Browse the repository at this point in the history
  • Loading branch information
somathias committed Jan 22, 2024
1 parent 393ef24 commit 30ecca2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/functional/projects_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 30ecca2

Please sign in to comment.