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
parent 459cb30bad
commit 74df1aa6ec

View File

@ -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);
});
});