[Groonga-commit] groonga/fluent-plugin-droonga at 6bee487 [master] test: extract test class that checks handler plugin of Groonga-like API

Back to archive index

Kosuke Asami null+****@clear*****
Tue Jul 9 17:22:56 JST 2013


Kosuke Asami	2013-07-09 17:22:56 +0900 (Tue, 09 Jul 2013)

  New Revision: 6bee487323c1e412dbe94631d4af3226ce9e986c
  https://github.com/groonga/fluent-plugin-droonga/commit/6bee487323c1e412dbe94631d4af3226ce9e986c

  Message:
    test: extract test class that checks handler plugin of Groonga-like API

  Added files:
    test/plugin/groonga/test_table_create.rb
  Modified files:
    test/plugin/test_handler_groonga.rb

  Added: test/plugin/groonga/test_table_create.rb (+28 -0) 100644
===================================================================
--- /dev/null
+++ test/plugin/groonga/test_table_create.rb    2013-07-09 17:22:56 +0900 (3507d39)
@@ -0,0 +1,28 @@
+# Copyright (C) 2013 droonga project
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1 as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+class TableCreateTest < GroongaHandlerTest
+  def test_success
+    @handler.table_create({"name" => "Books"})
+    assert_equal([true], @worker.body)
+  end
+
+  def test_name
+    @handler.table_create({"name" => "Books"})
+    assert_equal(<<-SCHEMA, dump)
+table_create Books TABLE_NO_KEY
+    SCHEMA
+  end
+end

  Modified: test/plugin/test_handler_groonga.rb (+0 -14)
===================================================================
--- test/plugin/test_handler_groonga.rb    2013-07-09 16:17:22 +0900 (cd5a80e)
+++ test/plugin/test_handler_groonga.rb    2013-07-09 17:22:56 +0900 (70b46ee)
@@ -65,18 +65,4 @@ class GroongaHandlerTest < Test::Unit::TestCase
     database_dumper = Groonga::DatabaseDumper.new(:database => @database)
     database_dumper.dump
   end
-
-  class TableCreateTest < self
-    def test_success
-      @handler.table_create({"name" => "Books"})
-      assert_equal([true], @worker.body)
-    end
-
-    def test_name
-      @handler.table_create({"name" => "Books"})
-      assert_equal(<<-SCHEMA, dump)
-table_create Books TABLE_NO_KEY
-      SCHEMA
-    end
-  end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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