spec/auth/effective_permissions_spec.rb in ddr-models-3.0.0.beta.4 vs spec/auth/effective_permissions_spec.rb in ddr-models-3.0.0.beta.6
- old
+ new
@@ -1,9 +1,9 @@
module Ddr::Auth
RSpec.describe EffectivePermissions do
let(:resource) { FactoryGirl.build(:item) }
- let(:policy) { Collection.new(pid: "coll-1") }
+ let(:policy) { Collection.new(id: "coll-1") }
let(:agents) { [ "Editors", "bob@example.com" ] }
before do
resource.admin_policy = policy
resource.roles.grant FactoryGirl.build(:role, :downloader, :public)