From 8a9c8655f6b6fd0d170db3e4961d350ccbdc5edb Mon Sep 17 00:00:00 2001 From: tamsin johnson Date: Tue, 31 Oct 2023 13:25:49 -0700 Subject: [PATCH] use #to_a in monographs_controller_spec for enumerable compatibility --- spec/controllers/hyrax/monographs_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/hyrax/monographs_controller_spec.rb b/spec/controllers/hyrax/monographs_controller_spec.rb index a420ade041..1769678a86 100644 --- a/spec/controllers/hyrax/monographs_controller_spec.rb +++ b/spec/controllers/hyrax/monographs_controller_spec.rb @@ -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' },