test multiple traversals
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
This commit is contained in:
parent
f49ee21136
commit
0acbe95797
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
permalink: /%2e%2e/baddie.html
|
permalink: /%2e%2e/%2e%2e/%2e%2e/baddie.html
|
||||||
---
|
---
|
||||||
|
|
||||||
# Test
|
# Test
|
||||||
|
|
|
@ -108,7 +108,7 @@ class TestPost < Test::Unit::TestCase
|
||||||
do_render(post)
|
do_render(post)
|
||||||
post.write(dest_dir)
|
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))
|
assert File.exist?(File.expand_path("baddie.html", dest_dir))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue