Skip to content

Commit

Permalink
Correct permissions_attributes value format.
Browse files Browse the repository at this point in the history
  • Loading branch information
lsitu committed Aug 21, 2023
1 parent 49a5c9e commit 8dfb21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controllers/hyrax/batch_edits_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@

context 'with roles' do
it 'updates roles' do
put :update, params: { update_type: "update", generic_work: { permissions_attributes: [{ type: 'person', access: 'read', name: '[email protected]' }] } }
put :update, params: { update_type: "update", generic_work: { permissions_attributes: { "0" => { type: 'person', access: 'read', name: '[email protected]' } } } }
expect(response).to be_redirect

work1 = GenericWork.find(one.id)
Expand Down

0 comments on commit 8dfb21e

Please sign in to comment.