spec/models/ability_spec.rb in ddr-models-1.7.0 vs spec/models/ability_spec.rb in ddr-models-1.8.0

- old
+ new

@@ -55,11 +55,11 @@ end end context "and user has the downloader role", roles: true do before do - resource.roleAssignments.downloader << user.principal_name + resource.roles.downloader << user.principal_name resource.save end context "and user has edit permission" do before do resource.edit_users = [user.user_key] @@ -114,10 +114,10 @@ end end context "and user has the downloader role", roles: true do before do - obj.roleAssignments.downloader << user.principal_name + obj.roles.downloader << user.principal_name obj.save end context "and user has read permission on the object" do before do obj.read_users = [user.user_key]