[Groonga-commit] droonga/fluent-plugin-droonga at 1daa48e [catalog-schema] schema: Add test for Column#to_column_create_body

Back to archive index

Yoji Shidara null+****@clear*****
Tue Feb 18 19:17:50 JST 2014


Yoji Shidara	2014-02-18 19:17:50 +0900 (Tue, 18 Feb 2014)

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

  Message:
    schema: Add test for Column#to_column_create_body

  Modified files:
    test/unit/catalog/test_schema.rb

  Modified: test/unit/catalog/test_schema.rb (+14 -0)
===================================================================
--- test/unit/catalog/test_schema.rb    2014-02-18 18:55:04 +0900 (e0d421d)
+++ test/unit/catalog/test_schema.rb    2014-02-18 19:17:50 +0900 (312f670)
@@ -247,6 +247,20 @@ class CatalogSchemaTest < Test::Unit::TestCase
                                      }
                                    }).flags)
       end
+
+      def test_to_column_create_body
+        assert_equal({
+                       "name" => "column_name",
+                       "flags" => "COLUMN_SCALAR",
+                       "table" => "table_name"
+                     },
+                     create_column("column_name",
+                                  {
+                                    "type"      => "Scalar",
+                                    "valueType" => "ShortText"
+                                  }).to_column_create_body)
+
+      end
     end
 
     class ColumnIndexOptionsTest < self
-------------- next part --------------
HTML����������������������������...
Download 



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