diff --git a/spec/hydra/pcdm/models/collection_spec.rb b/spec/hydra/pcdm/models/collection_spec.rb index c68b05d5..c9e48e80 100644 --- a/spec/hydra/pcdm/models/collection_spec.rb +++ b/spec/hydra/pcdm/models/collection_spec.rb @@ -31,6 +31,12 @@ describe '#collections=' do it 'should aggregate collections' do + # TODO: This test needs refinement with before and after managing objects in fedora. + + collection1 = Hydra::PCDM::Collection.create + collection2 = Hydra::PCDM::Collection.create + collection3 = Hydra::PCDM::Collection.create + collection1.collections = [collection2,collection3] collection1.save expect(collection1.collections).to eq [collection2,collection3] @@ -189,7 +195,7 @@ class Awbject < Hydra::PCDM::Object expect(collection1.objects).to eq [] end - it 'should return empty array when only collections are aggregated' do + it 'should return empty array when only collections are aggregated' do collection1.collections = [collection2,collection3] collection1.save expect(collection1.objects).to eq [] @@ -203,27 +209,9 @@ class Awbject < Hydra::PCDM::Object end end - describe '#contains' do it 'should not be allowed' do expect{ collection1.contains }.to raise_error(NotImplementedError, "`contains' is not allowed for :Hydra::PCDM::Collection") end end - - describe '#METHOD_TO_SET_METADATA' do - xit 'should be able to set descriptive metadata' do - # 6) Hydra::PCDM::Collection can have descriptive metadata - - # TODO Write test - - end - - xit 'should be able to set access metadata' do - # 7) Hydra::PCDM::Collection can have access metadata - - # TODO Write test - - end - end - end diff --git a/spec/hydra/pcdm/models/object_spec.rb b/spec/hydra/pcdm/models/object_spec.rb index dd714ed9..18157715 100644 --- a/spec/hydra/pcdm/models/object_spec.rb +++ b/spec/hydra/pcdm/models/object_spec.rb @@ -86,23 +86,4 @@ end end - - - - describe '#METHOD_TO_SET_METADATA' do - xit 'should be able to set descriptive metadata' do - # 6) Hydra::PCDM::Collection can have descriptive metadata - - # TODO Write test - - end - - xit 'should be able to set access metadata' do - # 7) Hydra::PCDM::Object can have descriptive metadata - - # TODO Write test - - end - end - end