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