Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

Commit

Permalink
Add test for duplicate role name regression
Browse files Browse the repository at this point in the history
  • Loading branch information
mcritchlow committed Jul 3, 2019
1 parent 5af68a8 commit a72b5c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/features/dams_collections_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@
expect(page).to have_selector("div.span8 dl dt[13]", :text => 'Contributors')
end

scenario 'should not see duplicated role names' do
visit dams_collection_path("#{@provCollection.pid}")
expect(page).to have_link("Cheng, Lanna", count: 1)
expect(page).to have_link("Schulz-Baldes, Meinhard", count: 1)
expect(page).to have_link("Credit, I get the", count: 1)
expect(page).to have_link("Alexander, George V.", count: 1)
end

scenario 'should not see access control information (public)' do
visit dams_collection_path("#{@provCollection.pid}")
expect(page).to have_no_content('AccessPublic')
Expand Down

0 comments on commit a72b5c5

Please sign in to comment.