Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update services to properly process repeating objects in a collection/object #106

Open
elrayle opened this issue May 18, 2015 · 1 comment

Comments

@elrayle
Copy link
Contributor

elrayle commented May 18, 2015

In collection/add_object_spec and object/add_object_spec...

it 'should allow objects to repeat' do
  Hydra::PCDM::AddObjectToCollection.call( subject, object1 )
  Hydra::PCDM::AddObjectToCollection.call( subject, object2 )
  Hydra::PCDM::AddObjectToCollection.call( subject, object1 )
  subject.save
  expect( Hydra::PCDM::GetObjectsFromCollection.call( subject.reload ) ).to eq [object1,object2,object1]
end

This test fails with Get returning [object1,object2].

NOTE: This test needs to be updated to save after Add and reload before Get. Otherwise, the problem is masked.

It could be that Add and Get need to be updated to process repeating objects. The other possibility is that something is happening at the ActiveFedora level.

@elrayle
Copy link
Contributor Author

elrayle commented May 18, 2015

See related... #105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant