test for system group rename

This commit is contained in:
barisusakli
2017-03-09 17:18:30 +03:00
parent 9f2e5e9c4b
commit 57691d9ad8
2 changed files with 75 additions and 52 deletions

View File

@@ -315,6 +315,15 @@ describe('Groups', function () {
});
});
});
it('should fail if system groups is being renamed', function (done) {
Groups.update('administrators', {
name: 'administrators_fail',
}, function (err) {
assert.equal(err.message, '[[error:not-allowed-to-rename-system-group]]');
done();
});
});
});
describe('.destroy()', function () {