diff options
Diffstat (limited to 'test/test_extras_try_gzip_static.rb')
-rw-r--r-- | test/test_extras_try_gzip_static.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_extras_try_gzip_static.rb b/test/test_extras_try_gzip_static.rb index 77eaf33..44fb867 100644 --- a/test/test_extras_try_gzip_static.rb +++ b/test/test_extras_try_gzip_static.rb @@ -172,6 +172,11 @@ class TestExtrasTryGzipStatic < Testcase end assert_nil body end + + Net::HTTP.start(host, port) do |http| + res = http.request(Net::HTTP::Get.new('/COPYING/foo')) + assert_equal 404, res.code.to_i + end ensure quit_wait(pid) end |