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: a3ccbd55290bbab5632844f3f9b6754a61a96829 https://github.com/droonga/fluent-plugin-droonga/commit/a3ccbd55290bbab5632844f3f9b6754a61a96829 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