Skip to content

Commit

Permalink
Merge pull request #6575 from samvera/fixes_grant_edit_to_depositor_spec
Browse files Browse the repository at this point in the history
Fixes `spec/services/hyrax/workflow/grant_edit_to_depositor_spec.rb` for dassie-valkyrie-test.
  • Loading branch information
dlpierce authored Jan 5, 2024
2 parents ff87b90 + be29f17 commit 777ff5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/services/hyrax/workflow/grant_edit_to_depositor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
let(:work) { valkyrie_create(:hyrax_work, depositor: depositor.user_key) }

it "adds edit access" do
expect { subject }.to change { work.edit_users }.from([]).to([depositor.user_key])
expect { subject }.to change { work.edit_users.to_a }.from([]).to([depositor.user_key])
expect(work).to be_persisted
end
end
Expand All @@ -40,7 +40,7 @@
let(:work) { valkyrie_create(:hyrax_work, depositor: depositor.user_key, edit_users: [editor.user_key]) }

it "adds edit access" do
expect { subject }.to change { work.edit_users }.from([editor.user_key]).to([editor.user_key, depositor.user_key])
expect { subject }.to change { work.edit_users.to_a }.from([editor.user_key]).to([editor.user_key, depositor.user_key])
expect(work).to be_persisted
end
end
Expand Down

0 comments on commit 777ff5c

Please sign in to comment.