Skip to content

Commit

Permalink
Merge pull request #6531 from samvera/updates_parent_collections_navi…
Browse files Browse the repository at this point in the history
…gator_spec

Valkyrizes `spec/services/hyrax/custom_queries/navigators/parent_collections_navigator_spec.rb`.
  • Loading branch information
dlpierce authored Dec 12, 2023
2 parents d201349 + 93f8b96 commit 734e24a
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 734e24a

Please sign in to comment.