spec/unit/permissions_spec.rb in hydra-access-controls-10.0.0.beta1 vs spec/unit/permissions_spec.rb in hydra-access-controls-10.0.0.beta2

- old
+ new

@@ -5,16 +5,16 @@ class Foo < ActiveFedora::Base include Hydra::AccessControls::Permissions end end - subject { Foo.new } + let(:model) { Foo.new } + subject { model } - it "has many permissions" do - expect(subject.permissions).to eq [] + describe "#permisisons" do + subject { model.permissions } + it { is_expected.to be_kind_of Hydra::AccessControl::CollectionRelationship } end - - #TODO is permission same as an acl? it "has a set of permissions" do subject.read_groups=['group1', 'group2'] subject.edit_users=['user1'] subject.read_users=['user2', 'user3']