test multiple traversals

Signed-off-by: Parker Moore <parkrmoore@gmail.com>
This commit is contained in:
Ben Balter 2014-01-06 19:59:41 -05:00 committed by Parker Moore
parent f49ee21136
commit 0acbe95797
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
---
permalink: /%2e%2e/baddie.html
permalink: /%2e%2e/%2e%2e/%2e%2e/baddie.html
---
# Test

View File

@ -108,7 +108,7 @@ class TestPost < Test::Unit::TestCase
do_render(post)
post.write(dest_dir)
assert !File.exist?(File.expand_path("../baddie.html", dest_dir))
assert !File.exist?(File.expand_path("../../../baddie.html", dest_dir))
assert File.exist?(File.expand_path("baddie.html", dest_dir))
end