spec/auth/effective_permissions_spec.rb in ddr-models-3.0.0.alpha.4 vs spec/auth/effective_permissions_spec.rb in ddr-models-3.0.0.beta.1

- old
+ new

@@ -6,10 +6,10 @@ let(:agents) { [ "Editors", "bob@example.com" ] } before do resource.admin_policy = policy resource.roles.grant FactoryGirl.build(:role, :downloader, :public) - policy.roles.grant type: "Editor", agent: "Editors", scope: "policy" + policy.roles.grant role_type: "Editor", agent: "Editors", scope: "policy" end it "should return the list of permissions granted to the agents on the resource in resource scope, plus the permissions granted to the agents on the resource's policy in policy scope" do expect(described_class.call(resource, agents)) .to contain_exactly(:read, :download, :add_children, :update, :replace, :arrange)