Kosuke Asami
null+****@clear*****
Mon Jul 22 15:01:01 JST 2013
Kosuke Asami 2013-07-22 15:01:01 +0900 (Mon, 22 Jul 2013) New Revision: aa83ae5fd274c4ece697367ed7ae774359262e19 https://github.com/groonga/fluent-plugin-droonga/commit/aa83ae5fd274c4ece697367ed7ae774359262e19 Message: test column_create: move common schema from test data to test Modified files: test/plugin/groonga/test_column_create.rb Modified: test/plugin/groonga/test_column_create.rb (+2 -14) =================================================================== --- test/plugin/groonga/test_column_create.rb 2013-07-22 14:55:31 +0900 (8e87629) +++ test/plugin/groonga/test_column_create.rb 2013-07-22 15:01:01 +0900 (3d74799) @@ -95,27 +95,15 @@ column_create Books entry_title COLUMN_INDEX Books title data({ "WITH_SECTION" => { :flags => "COLUMN_INDEX|WITH_SECTION", - :schema => <<-SCHEMA, -column_create Books entry_title COLUMN_INDEX|WITH_SECTION Books title - SCHEMA }, "WITH_WEIGHT" => { :flags => "COLUMN_INDEX|WITH_WEIGHT", - :schema => <<-SCHEMA, -column_create Books entry_title COLUMN_INDEX|WITH_WEIGHT Books title - SCHEMA }, "WITH_POSITION" => { :flags => "COLUMN_INDEX|WITH_POSITION", - :schema => <<-SCHEMA, -column_create Books entry_title COLUMN_INDEX|WITH_POSITION Books title - SCHEMA }, "COLUMN_INDEX with all" => { :flags => "COLUMN_INDEX|WITH_SECTION|WITH_WEIGHT|WITH_POSITION", - :schema => <<-SCHEMA, -column_create Books entry_title COLUMN_INDEX|WITH_SECTION|WITH_WEIGHT|WITH_POSITION Books title - SCHEMA }, }) def test_index_flags(data) @@ -127,11 +115,11 @@ column_create Books entry_title COLUMN_INDEX|WITH_SECTION|WITH_WEIGHT|WITH_POSIT "flags" => data[:flags], } @handler.column_create(request) - assert_equal(<<-EXPECTED.chomp, dump) + assert_equal(<<-EXPECTED, dump) table_create Books TABLE_HASH_KEY --key_type ShortText column_create Books title COLUMN_SCALAR ShortText -#{data[:schema]} +column_create Books entry_title #{data[:flags]} Books title EXPECTED end end -------------- next part -------------- HTML����������������������������...Download