[Groonga-commit] groonga/groonga at 045e6be [master] test http: update status code

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jan 14 10:27:39 JST 2014


Kouhei Sutou	2014-01-14 10:27:39 +0900 (Tue, 14 Jan 2014)

  New Revision: 045e6be48dc57fbf0cbc8b9ed4496e9b554b7c9d
  https://github.com/groonga/groonga/commit/045e6be48dc57fbf0cbc8b9ed4496e9b554b7c9d

  Message:
    test http: update status code

  Modified files:
    test/unit/http/test-invalid-http.rb

  Modified: test/unit/http/test-invalid-http.rb (+3 -3)
===================================================================
--- test/unit/http/test-invalid-http.rb    2014-01-14 10:22:37 +0900 (53482f8)
+++ test/unit/http/test-invalid-http.rb    2014-01-14 10:27:39 +0900 (d851967)
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2009-2011  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2009-2014  Kouhei Sutou <kou �� clear-code.com>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -76,12 +76,12 @@ class InvalidHTTPTest < Test::Unit::TestCase
 
   def test_not_start_with_slash
     response = get(".")
-    assert_equal("500", response.code) # FIXME: 400
+    assert_equal("400", response.code)
   end
 
   def test_long_path
     response = get("/0123456789" * 10000)
-    assert_equal("500", response.code)
+    assert_equal("400", response.code)
     assert_response([[Result::INVALID_ARGUMENT,
                       0.0,
                       0.0,
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index