Kosuke Asami
null+****@clear*****
Mon Jul 22 15:04:19 JST 2013
Kosuke Asami 2013-07-22 15:04:19 +0900 (Mon, 22 Jul 2013) New Revision: 16ca1dac6c5470ad56c9a3e1ec787bd053a1e505 https://github.com/groonga/fluent-plugin-droonga/commit/16ca1dac6c5470ad56c9a3e1ec787bd053a1e505 Message: test column_create: move a common flag "COLUMN_INDEX" from test data to test Modified files: test/plugin/groonga/test_column_create.rb Modified: test/plugin/groonga/test_column_create.rb (+7 -6) =================================================================== --- test/plugin/groonga/test_column_create.rb 2013-07-22 15:01:01 +0900 (3d74799) +++ test/plugin/groonga/test_column_create.rb 2013-07-22 15:04:19 +0900 (7257842) @@ -94,32 +94,33 @@ column_create Books entry_title COLUMN_INDEX Books title data({ "WITH_SECTION" => { - :flags => "COLUMN_INDEX|WITH_SECTION", + :flags => "WITH_SECTION", }, "WITH_WEIGHT" => { - :flags => "COLUMN_INDEX|WITH_WEIGHT", + :flags => "WITH_WEIGHT", }, "WITH_POSITION" => { - :flags => "COLUMN_INDEX|WITH_POSITION", + :flags => "WITH_POSITION", }, "COLUMN_INDEX with all" => { - :flags => "COLUMN_INDEX|WITH_SECTION|WITH_WEIGHT|WITH_POSITION", + :flags => "WITH_SECTION|WITH_WEIGHT|WITH_POSITION", }, }) def test_index_flags(data) + flags = "COLUMN_INDEX|#{data[:flags]}" request = { "table" => "Books", "name" => "entry_title", "type" => "Books", "source" => "title", - "flags" => data[:flags], + "flags" => flags, } @handler.column_create(request) assert_equal(<<-EXPECTED, dump) table_create Books TABLE_HASH_KEY --key_type ShortText column_create Books title COLUMN_SCALAR ShortText -column_create Books entry_title #{data[:flags]} Books title +column_create Books entry_title #{flags} Books title EXPECTED end end -------------- next part -------------- HTML����������������������������...Download