Test access to organization_admin version as organization_admin
This corrects the specification for the behavior of the Revision History screen; changes to the organization administrator role should be accessible to organization administrators, not conference organizers.
This commit is contained in:
parent
de24d4a34c
commit
4dd15d6120
2 changed files with 14 additions and 0 deletions
|
|
@ -319,11 +319,14 @@ feature 'Version' do
|
|||
end
|
||||
|
||||
context 'organization role', feature: true, versioning: true, js: true do
|
||||
let!(:organization_admin) { create(:organization_admin, organization: conference.organization) }
|
||||
let!(:user) { create(:user) }
|
||||
|
||||
setup do
|
||||
user.add_role :organization_admin, conference.organization
|
||||
user.remove_role :organization_admin, conference.organization
|
||||
|
||||
sign_in organization_admin
|
||||
visit admin_revision_history_path
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue