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

Back to archive 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: 4fecd4954fd47ec7e1500d9f5e8e1d563ac5ae8b
  https://github.com/droonga/fluent-plugin-droonga/commit/4fecd4954fd47ec7e1500d9f5e8e1d563ac5ae8b

  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����������������������������...
下载 



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