Kosuke Asami
null+****@clear*****
Tue Jul 16 14:04:31 JST 2013
Kosuke Asami 2013-07-16 14:04:31 +0900 (Tue, 16 Jul 2013) New Revision: 0fc8e353a1011f1f87f999bcc713b0dedd94bc67 https://github.com/groonga/fluent-plugin-droonga/commit/0fc8e353a1011f1f87f999bcc713b0dedd94bc67 Message: test column_create: add a test that checks column type Modified files: test/plugin/groonga/test_column_create.rb Modified: test/plugin/groonga/test_column_create.rb (+9 -0) =================================================================== --- test/plugin/groonga/test_column_create.rb 2013-07-16 14:04:17 +0900 (317f930) +++ test/plugin/groonga/test_column_create.rb 2013-07-16 14:04:31 +0900 (3a63bbb) @@ -28,4 +28,13 @@ table_create Books TABLE_HASH_KEY --key_type ShortText column_create Books title COLUMN_SCALAR ShortText SCHEMA end + + def test_type + @handler.table_create({"name" => "Books"}) + @handler.column_create({"table" => "Books", "name" => "main_text", "type" => "LongText"}) + assert_equal(<<-SCHEMA, dump) +table_create Books TABLE_HASH_KEY --key_type ShortText +column_create Books main_text COLUMN_SCALAR LongText + SCHEMA + end end -------------- next part -------------- HTML����������������������������...Download