[Groonga-commit] droonga/fluent-plugin-droonga at 773bff3 [master] Add a test of the "add" command for a request without "table"

Zurück zum Archiv-Index

YUKI Hiroshi null+****@clear*****
Thu Dec 26 12:00:57 JST 2013


YUKI Hiroshi	2013-12-26 12:00:57 +0900 (Thu, 26 Dec 2013)

  New Revision: 773bff3fc3b20e12d2b2134253c7c0d22069848e
  https://github.com/droonga/fluent-plugin-droonga/commit/773bff3fc3b20e12d2b2134253c7c0d22069848e

  Merged d5217b2: Merge branch 'master' of 192.168.1.21:~piro/groonga/fluent-plugin-droonga into HEAD

  Message:
    Add a test of the "add" command for a request without "table"

  Modified files:
    test/unit/plugin/handler/test_add.rb

  Modified: test/unit/plugin/handler/test_add.rb (+9 -0)
===================================================================
--- test/unit/plugin/handler/test_add.rb    2013-12-26 11:59:03 +0900 (2f0f57a)
+++ test/unit/plugin/handler/test_add.rb    2013-12-26 12:00:57 +0900 (3def810)
@@ -117,6 +117,15 @@ class AddHandlerTest < Test::Unit::TestCase
   end
 
   class FailureTest < self
+    def test_missing_table_parameter
+      request = {
+        "values" => {},
+      }
+      assert_raise(Droonga::AddHandler::MissingTable) do
+        process(request)
+      end
+    end
+
     def test_nonexistent_table
       request = {
         "table"  => "Nonexistent",
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index