1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

Add test for /strategies/:name 403 if strategy exists.

This commit is contained in:
Jari Bakken 2014-11-25 16:34:24 +01:00 committed by Ivar Conradi Østhus
parent 41964de9bf
commit 63b3c56cc5

View File

@ -36,5 +36,13 @@ describe('The strategy api', function () {
.expect(400, done); .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);
});
}); });