[Groonga-commit] groonga/fluent-plugin-droonga at 34e13ee [master] test add: move a routine that sets up schema to appropriate test class

Back to archive index

Kosuke Asami null+****@clear*****
Mon Jul 22 13:18:51 JST 2013


Kosuke Asami	2013-07-22 13:18:51 +0900 (Mon, 22 Jul 2013)

  New Revision: 34e13ee7ac876203df508499ee1e7d6bf7a406cd
  https://github.com/groonga/fluent-plugin-droonga/commit/34e13ee7ac876203df508499ee1e7d6bf7a406cd

  Message:
    test add: move a routine that sets up schema to appropriate test class

  Modified files:
    test/plugin/test_handler_add.rb

  Modified: test/plugin/test_handler_add.rb (+10 -5)
===================================================================
--- test/plugin/test_handler_add.rb    2013-07-22 13:13:38 +0900 (4d9ecc1)
+++ test/plugin/test_handler_add.rb    2013-07-22 13:18:51 +0900 (31cc43d)
@@ -41,11 +41,6 @@ class AddHandlerTest < Test::Unit::TestCase
                           :key_type => :short_text) do |table|
         table.short_text("country")
       end
-
-      schema.create_table("Books",
-                          :type => :array) do |table|
-        table.short_text("title")
-      end
     end
   end
 
@@ -88,6 +83,16 @@ class AddHandlerTest < Test::Unit::TestCase
   end
 
   class TestNoKey < self
+  def setup
+    super
+    Groonga::Schema.define do |schema|
+      schema.create_table("Books",
+                          :type => :array) do |table|
+        table.short_text("title")
+      end
+    end
+  end
+
   def test_add_no_key_empty_values
     request = {
       "table"  => "Books",
-------------- next part --------------
HTML����������������������������...
Download 



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