diff --git a/test/strategyApiSpec.js b/test/strategyApiSpec.js index d11c1e0200..5da09317ac 100644 --- a/test/strategyApiSpec.js +++ b/test/strategyApiSpec.js @@ -36,5 +36,13 @@ describe('The strategy api', function () { .expect(400, done); }); + it('refuses to create a strategy with an existing name', function (done) { + request + .post('/strategies') + .send({name: 'default'}) + .set('Content-Type', 'application/json') + .expect(403, done); + }); + }); \ No newline at end of file