Reduce GET style error verbosity

This commit is contained in:
Sandro Santilli 2012-09-25 10:18:47 +02:00
parent bc506784ca
commit 4d524d88d2
2 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,7 @@
"node-varnish": "0.1.1",
"underscore" : "1.1.x",
"grainstore" : "~0.6.2",
"windshaft" : "~0.4.14",
"windshaft" : "~0.4.16",
"step": "0.0.x",
"generic-pool": "1.0.x",
"redis": "0.7.2",

View File

@ -56,6 +56,8 @@ suite('server', function() {
}, function(res) {
// FIXME: should be 401 Unauthorized
assert.equal(res.statusCode, 500, res.body);
assert.deepEqual(JSON.parse(res.body),
{error: 'Sorry, you are unauthorized (permission denied)'});
done();
});
});