Kouhei Sutou
null+****@clear*****
Fri Mar 14 17:14:12 JST 2014
Kouhei Sutou 2014-03-14 17:14:12 +0900 (Fri, 14 Mar 2014) New Revision: ff5ccc0a1461e83accc5a975697bb666122eadc3 https://github.com/droonga/fluent-plugin-droonga/commit/ff5ccc0a1461e83accc5a975697bb666122eadc3 Message: Group column flags related tests Modified files: test/unit/catalog/test_schema.rb Modified: test/unit/catalog/test_schema.rb (+21 -19) =================================================================== --- test/unit/catalog/test_schema.rb 2014-03-14 17:12:42 +0900 (3c32925) +++ test/unit/catalog/test_schema.rb 2014-03-14 17:14:12 +0900 (11188eb) @@ -198,14 +198,6 @@ class CatalogSchemaTest < Test::Unit::TestCase {}).type) end - def test_flags - assert_equal(["COLUMN_SCALAR"], - create_column("column_name", - { - "type" => "Scalar" - }).flags) - end - def test_value_type assert_equal("ShortText", create_column("column_name", @@ -222,17 +214,6 @@ class CatalogSchemaTest < Test::Unit::TestCase }).value_type_groonga) end - def test_flags_with_column_index_options - assert_equal(["COLUMN_SCALAR", "WITH_SECTION"], - create_column("column_name", - { - "type" => "Scalar", - "indexOptions" => { - "section" => true - } - }).flags) - end - def test_to_column_create_body assert_equal({ "name" => "column_name", @@ -246,6 +227,27 @@ class CatalogSchemaTest < Test::Unit::TestCase "valueType" => "ShortText" }).to_column_create_body) end + + class FlagsTest < self + def test_type + assert_equal(["COLUMN_SCALAR"], + create_column("column_name", + { + "type" => "Scalar" + }).flags) + end + + def test_type_and_index_options + assert_equal(["COLUMN_SCALAR", "WITH_SECTION"], + create_column("column_name", + { + "type" => "Scalar", + "indexOptions" => { + "section" => true + } + }).flags) + end + end end class ColumnVectorOptionsTest < self -------------- next part -------------- HTML����������������������������... ダウンロード