Sha256: 23124921fe6dd5a99aa13c30b11541dd7c9e8b18820934d94f6cb99d3515271d
Contents?: true
Size: 584 Bytes
Versions: 6
Compression:
Stored size: 584 Bytes
Contents
RSpec.shared_examples "a governable object" do let(:object) do described_class.new.tap do |obj| obj.descMetadata.title = [ 'Describable' ] obj.descMetadata.identifier = [ 'id001' ] obj.save(validate: false) end end describe "can have an admin policy" do let(:coll) { FactoryGirl.create(:collection) } it "should set its admin policy with #admin_policy= and get with #admin_policy" do object.admin_policy = coll object.save(validate: false) expect(ActiveFedora::Base.find(object.id).admin_policy).to eq(coll) end end end
Version data entries
6 entries across 6 versions & 1 rubygems