diff options
author | Eric Wong <e@80x24.org> | 2014-09-01 22:45:21 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-09-01 22:45:21 +0000 |
commit | ef16914521dda4fcc8ee77ab44696fa58b749d37 (patch) | |
tree | 0d26d9dde1cc546ddd1d550d212a1f754d826260 /test/test_extras_autoindex.rb | |
parent | f7870c9f6ee2814391d234d7a2c84fb91277caab (diff) | |
download | yahns-ef16914521dda4fcc8ee77ab44696fa58b749d37.tar.gz |
No need to waste space on this (and trigger "Bad partial reference!" warnings on lynx)
Diffstat (limited to 'test/test_extras_autoindex.rb')
-rw-r--r-- | test/test_extras_autoindex.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_extras_autoindex.rb b/test/test_extras_autoindex.rb index ed0e1d5..e17234f 100644 --- a/test/test_extras_autoindex.rb +++ b/test/test_extras_autoindex.rb @@ -44,8 +44,12 @@ class TestExtrasAutoindex < Testcase res = http.request(Net::HTTP::Get.new("/")) assert_equal 200, res.code.to_i + refute_match %r{\.\./}, res.body, "top level should not link to parent" assert_match %r{foo}, res.body - assert_match %r{bar/}, res.body + + res = http.request(Net::HTTP::Get.new("/bar/")) + assert_equal 200, res.code.to_i + assert_match %r{\.\./}, res.body, "link to parent present" end ensure quit_wait pid |