Permalink
Browse files

Adding failing test for ..

  • Loading branch information...
1 parent fa52e52 commit 90cc076c8db74c932f1923e41ce333d2eb5c5e45 @tomgco tomgco committed Jun 20, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 test/staticGzipTest.js
View
@@ -186,5 +186,16 @@ module.exports = {
res.statusCode.should.equal(404);
}
);
+ },
+ 'Ensuring you cannot traverse up the directory tree': function() {
+ assert.response(getApp(),
+ {
+ url: '/../prefexTest.js'
+ },
+ function(res) {
+ console.log(res.error);
+ res.statusCode.should.equal(403);
+ }
+ );
}
};

0 comments on commit 90cc076

Please sign in to comment.