Skip to content

Commit

Permalink
Merge pull request #6405 from samvera/mono
Browse files Browse the repository at this point in the history
use #to_a in monographs_controller_spec for enumerable compatibility
  • Loading branch information
dlpierce authored Nov 1, 2023
2 parents addeadd + 8a9c865 commit 35c1ba0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/controllers/hyrax/monographs_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
context "when updating work members" do
let(:work) { FactoryBot.valkyrie_create(:comet_in_moominland, :with_member_works) }
let(:children) { Hyrax.query_service.custom_queries.find_child_works(resource: work) }
let(:child1) { children.first }
let(:child2) { children.last }
let(:child1) { children.to_a.first }
let(:child2) { children.to_a.last }
let(:child3) { FactoryBot.valkyrie_create(:monograph) }
let(:attributes) do
{ '0' => { id: child1.id, _destroy: 'true' },
Expand Down

0 comments on commit 35c1ba0

Please sign in to comment.