diff --git a/tests/groups.js b/tests/groups.js index 81fb253433..a86495071f 100644 --- a/tests/groups.js +++ b/tests/groups.js @@ -162,6 +162,14 @@ describe('Groups', function() { Groups.get('foo', {}, done); }); }); + + it('should fail to create group with duplicate group name', function(done) { + Groups.create({name: 'foo'}, function(err) { + assert(err); + assert.equal(err.message, '[[error:group-already-exists]]'); + done(); + }); + }); }); describe('.hide()', function() {