From 5cacad7db1cebe670ff5d96d418904331c18c96c Mon Sep 17 00:00:00 2001 From: bwatson78 Date: Wed, 3 Jan 2024 08:58:15 -0600 Subject: [PATCH] Converts enumerators into arrays for spec/services/hyrax/collections/nested_collection_persistence_service_spec.rb. --- .../collections/nested_collection_persistence_service_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/services/hyrax/collections/nested_collection_persistence_service_spec.rb b/spec/services/hyrax/collections/nested_collection_persistence_service_spec.rb index 8abab8889f..3815f0bbb7 100644 --- a/spec/services/hyrax/collections/nested_collection_persistence_service_spec.rb +++ b/spec/services/hyrax/collections/nested_collection_persistence_service_spec.rb @@ -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 @@ -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