added dupe group create test

v1.18.x
barisusakli 9 years ago
parent 0efe315790
commit 4ca53703e3

@ -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() {

Loading…
Cancel
Save