Kosuke Asami
null+****@clear*****
Mon Jul 22 15:10:45 JST 2013
Kosuke Asami 2013-07-22 15:10:45 +0900 (Mon, 22 Jul 2013) New Revision: 8e1460a4ce36b93fb750b4268cf77758bf1ec184 https://github.com/groonga/fluent-plugin-droonga/commit/8e1460a4ce36b93fb750b4268cf77758bf1ec184 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 -8) =================================================================== --- test/plugin/groonga/test_column_create.rb 2013-07-22 15:09:27 +0900 (7a76d73) +++ test/plugin/groonga/test_column_create.rb 2013-07-22 15:10:45 +0900 (c14576f) @@ -43,15 +43,9 @@ column_create Books main_text COLUMN_SCALAR LongText data({ "COLUMN_SCALAR" => { :flags => "COLUMN_SCALAR", - :schema => <<-SCHEMA, -column_create Books title COLUMN_SCALAR ShortText - SCHEMA }, "COLUMN_VECTOR" => { :flags => "COLUMN_VECTOR", - :schema => <<-SCHEMA, -column_create Books title COLUMN_VECTOR ShortText - SCHEMA }, }) def test_data_store_column_type(data) @@ -63,9 +57,9 @@ column_create Books title COLUMN_VECTOR ShortText } @handler.table_create({"name" => "Books"}) @handler.column_create(request) - assert_equal(<<-EXPECTED.chomp, dump) + assert_equal(<<-EXPECTED, dump) table_create Books TABLE_HASH_KEY --key_type ShortText -#{data[:schema]} +column_create Books title #{data[:flags]} ShortText EXPECTED end end -------------- next part -------------- HTML����������������������������...Download