samvera / hydra-pcdm

Samvera implementation of the PCDM model
Other
11 stars 10 forks source link

should not be able to add a collection as a child of an object #135

Closed elrayle closed 9 years ago

elrayle commented 9 years ago

obj.members = [col] # should raise ActiveFedora::AssociationTypeMismatch col is not a PCDM object.

See test pcdm/models/object_spec.rb #members with unacceptable child objects it should NOT aggregate Hydra::PCDM::Collection in objects aggregation around line 206

escowles commented 9 years ago

This was resolved with https://github.com/escowles/hydra-pcdm/commit/e9b8c7430bfd3c1bb8c0fbf6b79ae2227fcf4cb2