[Groonga-commit] groonga/fluent-plugin-droonga at 1fcf601 [master] test add: indent

Back to archive index

Kosuke Asami null+****@clear*****
Mon Jul 22 13:21:04 JST 2013


Kosuke Asami	2013-07-22 13:21:04 +0900 (Mon, 22 Jul 2013)

  New Revision: 1fcf6016c8a920710ebddab32c1d1af6aa7587ad
  https://github.com/groonga/fluent-plugin-droonga/commit/1fcf6016c8a920710ebddab32c1d1af6aa7587ad

  Message:
    test add: indent

  Modified files:
    test/plugin/test_handler_add.rb

  Modified: test/plugin/test_handler_add.rb (+53 -53)
===================================================================
--- test/plugin/test_handler_add.rb    2013-07-22 13:20:27 +0900 (3c27197)
+++ test/plugin/test_handler_add.rb    2013-07-22 13:21:04 +0900 (3362703)
@@ -54,70 +54,70 @@ class AddHandlerTest < Test::Unit::TestCase
 
   public
   class TestHasKey < self
-  def setup
-    super
-    Groonga::Schema.define do |schema|
-      schema.create_table("Users",
-                          :type => :hash,
-                          :key_type => :short_text) do |table|
-        table.short_text("country")
+    def setup
+      super
+      Groonga::Schema.define do |schema|
+        schema.create_table("Users",
+          :type => :hash,
+          :key_type => :short_text) do |table|
+          table.short_text("country")
+        end
       end
     end
-  end
 
-  def test_add_with_empty_values
-    request = {
-      "table"  => "Users",
-      "key"    => "mori",
-      "values" => {},
-    }
-    @handler.add(request)
-    table =****@worke*****["Users"]
-    assert_equal(["mori"], table.collect(&:key))
-  end
+    def test_add_with_empty_values
+      request = {
+        "table"  => "Users",
+        "key"    => "mori",
+        "values" => {},
+      }
+      @handler.add(request)
+      table =****@worke*****["Users"]
+      assert_equal(["mori"], table.collect(&:key))
+    end
 
-  def test_add_with_values
-    request = {
-      "table"  => "Users",
-      "key"    => "asami",
-      "values" => { "country" => "japan" },
-    }
-    @handler.add(request)
-    table =****@worke*****["Users"]
-    assert_equal(["japan"], table.collect(&:country))
-  end
+    def test_add_with_values
+      request = {
+        "table"  => "Users",
+        "key"    => "asami",
+        "values" => { "country" => "japan" },
+      }
+      @handler.add(request)
+      table =****@worke*****["Users"]
+      assert_equal(["japan"], table.collect(&:country))
+    end
   end
 
   class TestNoKey < self
-  def setup
-    super
-    Groonga::Schema.define do |schema|
-      schema.create_table("Books",
-                          :type => :array) do |table|
-        table.short_text("title")
+    def setup
+      super
+      Groonga::Schema.define do |schema|
+        schema.create_table("Books",
+          :type => :array) do |table|
+          table.short_text("title")
+        end
       end
     end
-  end
 
-  def test_add_no_key_empty_values
-    request = {
-      "table"  => "Books",
-      "values" => {},
-    }
-    @handler.add(request)
-    table =****@worke*****["Books"]
-    assert_equal([nil], table.collect(&:title))
-  end
+    def test_add_no_key_empty_values
+      request = {
+        "table"  => "Books",
+        "values" => {},
+      }
+      @handler.add(request)
+      table =****@worke*****["Books"]
+      assert_equal([nil], table.collect(&:title))
+    end
 
-  def test_add_no_key_with_values
-    request = {
-      "table"  => "Books",
-      "values" => { "title" => "CSS" },
-    }
-    @handler.add(request)
-    table =****@worke*****["Books"]
-    assert_equal(["CSS"], table.collect(&:title))
-  end
+    def test_add_no_key_with_values
+      request = {
+        "table"  => "Books",
+        "values" => { "title" => "CSS" },
+      }
+      @handler.add(request)
+      table =****@worke*****["Books"]
+      assert_equal(["CSS"], table.collect(&:title))
+    end
   end
 
   def test_failure
-------------- next part --------------
HTML����������������������������...
Download 



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