From 93f8b96d8ff365924982d9a7985516010953691c Mon Sep 17 00:00:00 2001 From: bwatson78 Date: Mon, 11 Dec 2023 15:57:15 -0600 Subject: [PATCH] Valkyrizes spec/services/hyrax/custom_queries/navigators/parent_collections_navigator_spec.rb. --- .../navigators/parent_collections_navigator_spec.rb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/spec/services/hyrax/custom_queries/navigators/parent_collections_navigator_spec.rb b/spec/services/hyrax/custom_queries/navigators/parent_collections_navigator_spec.rb index e0a9d30c9c..671f13bcae 100644 --- a/spec/services/hyrax/custom_queries/navigators/parent_collections_navigator_spec.rb +++ b/spec/services/hyrax/custom_queries/navigators/parent_collections_navigator_spec.rb @@ -3,18 +3,16 @@ let(:custom_query_service) { Hyrax.custom_queries } let!(:collection1) do - FactoryBot.valkyrie_create(:hyrax_collection, id: 'col1', - title: ['Parent Collection 1'], + FactoryBot.valkyrie_create(:hyrax_collection, title: ['Parent Collection 1'], members: [collection3, work1, work2]) end let!(:collection2) do - FactoryBot.valkyrie_create(:hyrax_collection, id: 'col2', - title: ['Parent Collection 1'], + FactoryBot.valkyrie_create(:hyrax_collection, title: ['Parent Collection 1'], members: [collection3, work1, work2]) end - let(:collection3) { FactoryBot.valkyrie_create(:hyrax_collection, id: 'col3', title: ['Child Collection 3']) } - let(:work1) { FactoryBot.valkyrie_create(:hyrax_work, id: 'wk1', title: ['Child Work 1']) } - let(:work2) { FactoryBot.valkyrie_create(:hyrax_work, id: 'wk2', title: ['Child Work 2']) } + let(:collection3) { FactoryBot.valkyrie_create(:hyrax_collection, title: ['Child Collection 3']) } + let(:work1) { FactoryBot.valkyrie_create(:hyrax_work, title: ['Child Work 1']) } + let(:work2) { FactoryBot.valkyrie_create(:hyrax_work, title: ['Child Work 2']) } describe '#find_parent_collections' do it 'returns parent collections as Valkyrie resources' do