Skip to content

Commit

Permalink
Merge pull request #6567 from samvera/updates_nested_collection_persi…
Browse files Browse the repository at this point in the history
…stence_service_spec

Converts enumerators into arrays for `spec/services/hyrax/collections/nested_collection_persistence_service_spec.rb`.
  • Loading branch information
dlpierce authored Jan 3, 2024
2 parents 7e75581 + 5cacad7 commit aebc211
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
it 'creates the relationship between parent and child' do
subject
expect(Hyrax.custom_queries.find_parent_collection_ids(resource: child)).to contain_exactly(parent.id)
expect(Hyrax.custom_queries.find_child_collection_ids(resource: parent)).to eq [child.id]
expect(Hyrax.custom_queries.find_child_collection_ids(resource: parent).to_a).to eq [child.id]
end
end

Expand All @@ -23,7 +23,7 @@
it 'removes the relationship between parent and child' do
subject
expect(Hyrax.custom_queries.find_parent_collection_ids(resource: child)).to be_empty
expect(Hyrax.custom_queries.find_child_collection_ids(resource: parent)).to be_empty
expect(Hyrax.custom_queries.find_child_collection_ids(resource: parent).to_a).to be_empty
end
end
end

0 comments on commit aebc211

Please sign in to comment.