Skip to content

Commit

Permalink
Remove tests for descriptive and access metadata
Browse files Browse the repository at this point in the history
That functionality lives in ActiveFedora and Hyra::AccessControls.
We don't need to test for it here.

See #53 for further discussion of where ACLs belong.
  • Loading branch information
jcoyne committed May 7, 2015
1 parent 1c496f1 commit 94c7056
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 38 deletions.
26 changes: 7 additions & 19 deletions spec/hydra/pcdm/models/collection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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 []
Expand All @@ -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
19 changes: 0 additions & 19 deletions spec/hydra/pcdm/models/object_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 94c7056

Please sign in to comment.