about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-11-25 05:09:36 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-11-25 05:09:36 +0000
commit2039a4c56042adf4a4af4c3180a994d8c6849db6 (patch)
tree30da41b26fc7293345ddfdfabfc8b5296831ab5f /test
parent6f93879f86a15201dcb5de3f3f034290aea74a21 (diff)
downloadunicorn-2039a4c56042adf4a4af4c3180a994d8c6849db6.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@419 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'test')
-rw-r--r--test/test_handlers.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/test_handlers.rb b/test/test_handlers.rb
index 98f83c0..09daf8f 100644
--- a/test/test_handlers.rb
+++ b/test/test_handlers.rb
@@ -91,13 +91,13 @@ class HandlersTest < Test::Unit::TestCase
   end
 
   # TODO: find out why this fails on win32 but nowhere else
-  #
-  #def test_posting_fails_dirhandler
-  #  req = Net::HTTP::Post.new("http://localhost:9998/files/rdoc/")
-  #  req.set_form_data({'from'=>'2005-01-01', 'to'=>'2005-03-31'}, ';')
-  #  res = hit [["http://localhost:9998/files/rdoc/",req]]
-  #  check_status res, Net::HTTPNotFound
-  #end
+  
+  def test_posting_fails_dirhandler
+    req = Net::HTTP::Post.new("http://localhost:9998/files/rdoc/")
+    req.set_form_data({'from'=>'2005-01-01', 'to'=>'2005-03-31'}, ';')
+    res = hit [["http://localhost:9998/files/rdoc/",req]]
+    check_status res, Net::HTTPNotFound
+  end
 
   def test_unregister
     @config.listeners["127.0.0.1:9998"].unregister("/")