Rename to groups.update

This commit is contained in:
Girish Ramakrishnan
2018-06-18 13:41:27 -07:00
parent 898cbd01b3
commit 1dbcf2a46a
5 changed files with 14 additions and 13 deletions

View File

@@ -156,7 +156,7 @@ describe('Groups API', function () {
describe('Roles', function () {
it('can set roles', function (done) {
superagent.put(SERVER_URL + '/api/v1/groups/' + groupObject.id + '/roles')
superagent.post(SERVER_URL + '/api/v1/groups/' + groupObject.id)
.query({ access_token: token })
.send({ roles: [ accesscontrol.ROLE_OWNER ]})
.end(function (error, result) {
@@ -166,7 +166,7 @@ describe('Groups API', function () {
});
it('fails with invalid roles', function (done) {
superagent.put(SERVER_URL + '/api/v1/groups/' + groupObject.id + '/roles')
superagent.post(SERVER_URL + '/api/v1/groups/' + groupObject.id)
.query({ access_token: token })
.send({ roles: [ 'bogus' ]})
.end(function (error, result) {